home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / VideoToolboxSources / Assign.note < prev    next >
MacBinary  |  1994-10-17  |  31.1 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Mon Oct 17 15:04:03 1994, modified Mon Oct 17 15:04:03 1994, creator 'MMCC', type ASCII, 31126 bytes "Assign.note" , at 0x7a16 456 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 41 73 73 69 67 6e | 2e 6e 6f 74 65 00 00 00 |..Assign|.note...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 79 96 00 | 00 01 c8 aa c8 7b 23 aa |.....y..|.....{#.|
|00000060| c8 7b 23 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.{#.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ba 21 00 00 |........|.....!..|
|00000080| 23 69 66 20 30 0d 41 73 | 73 69 67 6e 2e 6e 6f 74 |#if 0.As|sign.not|
|00000090| 65 0d 54 68 69 73 20 66 | 69 6c 65 20 64 6f 63 75 |e.This f|ile docu|
|000000a0| 6d 65 6e 74 73 20 41 73 | 73 69 67 6e 2e 63 2e 0d |ments As|sign.c..|
|000000b0| 0d 41 73 73 69 67 6e 20 | 69 73 20 61 20 70 6f 72 |.Assign |is a por|
|000000c0| 74 61 62 6c 65 20 72 75 | 6e 74 69 6d 65 20 43 20 |table ru|ntime C |
|000000d0| 69 6e 74 65 72 70 72 65 | 74 65 72 20 74 68 61 74 |interpre|ter that|
|000000e0| 20 72 65 61 64 73 20 61 | 6e 64 20 65 78 65 63 75 | reads a|nd execu|
|000000f0| 74 65 73 20 61 6e 79 20 | 74 65 78 74 0d 22 61 73 |tes any |text."as|
|00000100| 73 69 67 6e 6d 65 6e 74 | 22 20 66 69 6c 65 20 74 |signment|" file t|
|00000110| 68 61 74 20 63 6f 6e 74 | 61 69 6e 73 20 6f 6e 6c |hat cont|ains onl|
|00000120| 79 20 43 20 61 73 73 69 | 67 6e 6d 65 6e 74 73 20 |y C assi|gnments |
|00000130| 61 6e 64 20 63 6f 6d 6d | 65 6e 74 73 2c 20 65 2e |and comm|ents, e.|
|00000140| 67 2e 0d 09 76 69 65 77 | 69 6e 67 44 69 73 74 61 |g...view|ingDista|
|00000150| 6e 63 65 3d 35 37 2e 30 | 3b 09 2f 2a 20 69 6e 63 |nce=57.0|;./* inc|
|00000160| 68 65 73 20 2a 2f 0d 49 | 74 20 75 73 65 73 20 61 |hes */.I|t uses a|
|00000170| 6e 20 61 72 72 61 79 20 | 6f 66 20 22 44 65 73 63 |n array |of "Desc|
|00000180| 72 69 70 74 69 6f 6e 22 | 20 73 74 72 75 63 74 75 |ription"| structu|
|00000190| 72 65 73 20 74 6f 20 61 | 73 73 6f 63 69 61 74 65 |res to a|ssociate|
|000001a0| 20 65 61 63 68 20 6e 61 | 6d 65 20 69 6e 20 74 68 | each na|me in th|
|000001b0| 65 0d 61 73 73 69 67 6e | 6d 65 6e 74 20 66 69 6c |e.assign|ment fil|
|000001c0| 65 20 77 69 74 68 20 61 | 20 63 6f 72 72 65 73 70 |e with a| corresp|
|000001d0| 6f 6e 64 69 6e 67 20 72 | 75 6e 74 69 6d 65 20 43 |onding r|untime C|
|000001e0| 20 76 61 72 69 61 62 6c | 65 2e 20 49 74 20 63 61 | variabl|e. It ca|
|000001f0| 6e 20 61 6c 73 6f 20 77 | 72 69 74 65 20 61 6e 0d |n also w|rite an.|
|00000200| 61 73 73 69 67 6e 6d 65 | 6e 74 20 66 69 6c 65 2c |assignme|nt file,|
|00000210| 20 6d 61 6b 69 6e 67 20 | 74 68 65 20 61 73 73 69 | making |the assi|
|00000220| 67 6e 6d 65 6e 74 20 66 | 69 6c 65 20 61 20 70 6f |gnment f|ile a po|
|00000230| 72 74 61 62 6c 65 20 77 | 61 79 20 6f 66 20 77 72 |rtable w|ay of wr|
|00000240| 69 74 69 6e 67 20 61 6e | 64 0d 72 65 61 64 69 6e |iting an|d.readin|
|00000250| 67 20 63 61 6c 69 62 72 | 61 74 69 6f 6e 73 20 61 |g calibr|ations a|
|00000260| 6e 64 20 65 78 70 65 72 | 69 6d 65 6e 74 61 6c 20 |nd exper|imental |
|00000270| 70 61 72 61 6d 65 74 65 | 72 73 2e 20 41 72 72 61 |paramete|rs. Arra|
|00000280| 79 73 20 63 61 6e 20 62 | 65 20 61 6c 6c 6f 63 61 |ys can b|e alloca|
|00000290| 74 65 64 0d 64 79 6e 61 | 6d 69 63 61 6c 6c 79 2c |ted.dyna|mically,|
|000002a0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 64 | automat|ically d|
|000002b0| 69 6d 65 6e 73 69 6f 6e | 65 64 20 73 6f 20 61 73 |imension|ed so as|
|000002c0| 20 74 6f 20 68 6f 6c 64 | 20 61 6c 6c 20 74 68 65 | to hold| all the|
|000002d0| 20 61 73 73 69 67 6e 6d | 65 6e 74 73 20 69 6e 20 | assignm|ents in |
|000002e0| 61 6e 79 0d 70 61 72 74 | 20 6f 66 20 74 68 65 20 |any.part| of the |
|000002f0| 61 73 73 69 67 6e 6d 65 | 6e 74 20 66 69 6c 65 2e |assignme|nt file.|
|00000300| 0d 0d 50 72 6f 67 72 61 | 6d 73 20 77 72 69 74 74 |..Progra|ms writt|
|00000310| 65 6e 20 62 65 66 6f 72 | 65 20 31 39 39 33 2c 20 |en befor|e 1993, |
|00000320| 75 73 69 6e 67 20 74 68 | 65 20 6f 6c 64 20 52 65 |using th|e old Re|
|00000330| 61 64 41 73 73 69 67 6e | 6d 65 6e 74 73 2e 63 20 |adAssign|ments.c |
|00000340| 28 6e 6f 77 20 73 75 70 | 65 72 63 65 64 65 64 20 |(now sup|erceded |
|00000350| 62 79 20 0d 41 73 73 69 | 67 6e 2e 63 29 2c 20 6d |by .Assi|gn.c), m|
|00000360| 61 79 20 23 69 6e 63 6c | 75 64 65 20 74 68 65 20 |ay #incl|ude the |
|00000370| 68 65 61 64 65 72 20 66 | 69 6c 65 20 41 73 73 69 |header f|ile Assi|
|00000380| 67 6e 39 32 2e 68 20 74 | 6f 20 6d 69 6e 69 6d 69 |gn92.h t|o minimi|
|00000390| 7a 65 20 74 68 65 20 65 | 66 66 6f 72 74 20 6f 66 |ze the e|ffort of|
|000003a0| 20 0d 75 70 64 61 74 69 | 6e 67 2e 0d 0d 50 4f 52 | .updati|ng...POR|
|000003b0| 54 41 42 49 4c 49 54 59 | 3a 20 53 74 61 6e 64 61 |TABILITY|: Standa|
|000003c0| 72 64 20 43 0d 0d 53 59 | 4e 54 41 58 20 4f 46 20 |rd C..SY|NTAX OF |
|000003d0| 54 48 45 20 41 53 53 49 | 47 4e 4d 45 4e 54 20 46 |THE ASSI|GNMENT F|
|000003e0| 49 4c 45 0d 0d 54 68 65 | 20 65 6e 74 69 72 65 20 |ILE..The| entire |
|000003f0| 22 61 73 73 69 67 6e 6d | 65 6e 74 22 20 66 69 6c |"assignm|ent" fil|
|00000400| 65 20 6d 61 79 20 63 6f | 6e 74 61 69 6e 20 6f 6e |e may co|ntain on|
|00000410| 6c 79 20 73 69 6d 70 6c | 65 20 61 73 73 69 67 6e |ly simpl|e assign|
|00000420| 6d 65 6e 74 73 2d 2d 77 | 68 69 63 68 20 61 72 65 |ments--w|hich are|
|00000430| 0d 69 6e 74 65 72 70 72 | 65 74 65 64 2d 2d 61 6e |.interpr|eted--an|
|00000440| 64 20 77 68 69 74 65 73 | 70 61 63 65 20 61 6e 64 |d whites|pace and|
|00000450| 20 63 6f 6d 6d 65 6e 74 | 73 2d 2d 77 68 69 63 68 | comment|s--which|
|00000460| 20 61 72 65 20 69 67 6e | 6f 72 65 64 2e 20 42 6f | are ign|ored. Bo|
|00000470| 74 68 20 43 20 73 74 79 | 6c 65 20 2f 2a 20 2a 2f |th C sty|le /* */|
|00000480| 0d 61 6e 64 20 43 2b 2b | 20 73 74 79 6c 65 20 2f |.and C++| style /|
|00000490| 2f 20 63 6f 6d 6d 65 6e | 74 73 20 61 72 65 20 61 |/ commen|ts are a|
|000004a0| 6c 6c 6f 77 65 64 2e 20 | 49 67 6e 6f 72 69 6e 67 |llowed. |Ignoring|
|000004b0| 20 61 6e 79 20 69 6e 74 | 65 72 76 65 6e 69 6e 67 | any int|ervening|
|000004c0| 20 77 68 69 74 65 73 70 | 61 63 65 20 61 6e 64 0d | whitesp|ace and.|
|000004d0| 63 6f 6d 6d 65 6e 74 73 | 2c 20 65 61 63 68 20 61 |comments|, each a|
|000004e0| 73 73 69 67 6e 6d 65 6e | 74 20 63 6f 6e 73 69 73 |ssignmen|t consis|
|000004f0| 74 73 20 6f 66 20 61 20 | 76 61 72 69 61 62 6c 65 |ts of a |variable|
|00000500| 20 6e 61 6d 65 20 6f 66 | 20 61 6e 79 20 6c 65 6e | name of| any len|
|00000510| 67 74 68 2c 20 70 6f 73 | 73 69 62 6c 79 0d 77 69 |gth, pos|sibly.wi|
|00000520| 74 68 20 61 20 63 6f 6e | 73 74 61 6e 74 20 73 75 |th a con|stant su|
|00000530| 62 73 63 72 69 70 74 20 | 28 6f 66 20 75 70 20 74 |bscript |(of up t|
|00000540| 6f 20 41 53 53 49 47 4e | 5f 44 49 4d 53 20 64 69 |o ASSIGN|_DIMS di|
|00000550| 6d 65 6e 73 69 6f 6e 73 | 29 2c 20 61 6e 20 65 71 |mensions|), an eq|
|00000560| 75 61 6c 20 73 69 67 6e | 2c 0d 65 69 74 68 65 72 |ual sign|,.either|
|00000570| 20 61 20 63 6f 6e 73 74 | 61 6e 74 20 28 64 65 63 | a const|ant (dec|
|00000580| 69 6d 61 6c 20 31 33 2c | 20 31 2e 33 2c 20 31 2e |imal 13,| 1.3, 1.|
|00000590| 33 65 39 2c 20 68 65 78 | 20 30 78 31 61 2c 20 63 |3e9, hex| 0x1a, c|
|000005a0| 68 61 72 20 27 61 27 2c | 20 74 72 61 6e 73 63 65 |har 'a',| transce|
|000005b0| 6e 64 65 6e 74 61 6c 0d | 49 6e 66 2c 20 6f 72 20 |ndental.|Inf, or |
|000005c0| 6e 6f 74 2d 61 2d 6e 75 | 6d 62 65 72 20 4e 61 4e |not-a-nu|mber NaN|
|000005d0| 29 20 6f 72 20 61 20 73 | 74 72 69 6e 67 20 6c 69 |) or a s|tring li|
|000005e0| 74 65 72 61 6c 20 28 65 | 2e 67 2e 20 22 68 65 6c |teral (e|.g. "hel|
|000005f0| 6c 6f 22 29 2c 20 61 6e | 64 20 61 20 73 65 6d 69 |lo"), an|d a semi|
|00000600| 63 6f 6c 6f 6e 2e 0d 09 | 69 3d 33 3b 20 61 3d 31 |colon...|i=3; a=1|
|00000610| 2e 30 3b 20 62 5b 31 5d | 5b 32 5d 3d 49 4e 46 3b |.0; b[1]|[2]=INF;|
|00000620| 20 6d 73 67 3d 22 68 65 | 6c 6c 6f 20 77 6f 72 6c | msg="he|llo worl|
|00000630| 64 22 3b 20 2f 2a 20 65 | 78 61 6d 70 6c 65 73 20 |d"; /* e|xamples |
|00000640| 2a 2f 0d 4e 61 4e 20 28 | 6f 72 20 4e 41 4e 20 6f |*/.NaN (|or NAN o|
|00000650| 72 20 6e 61 6e 29 2c 20 | 49 6e 66 20 28 6f 72 20 |r nan), |Inf (or |
|00000660| 49 4e 46 20 6f 72 20 69 | 6e 66 29 2c 20 61 6e 64 |INF or i|nf), and|
|00000670| 20 2d 49 6e 66 20 61 72 | 65 20 61 63 63 65 70 74 | -Inf ar|e accept|
|00000680| 65 64 20 61 73 20 66 6c | 6f 61 74 69 6e 67 0d 76 |ed as fl|oating.v|
|00000690| 61 6c 75 65 73 2e 20 28 | 54 68 65 20 4e 41 4e 20 |alues. (|The NAN |
|000006a0| 73 70 65 63 69 66 69 63 | 61 74 69 6f 6e 20 6d 61 |specific|ation ma|
|000006b0| 79 20 69 6e 63 6c 75 64 | 65 20 61 20 4e 41 4e 2d |y includ|e a NAN-|
|000006c0| 63 6f 64 65 2c 20 61 20 | 6c 61 20 54 48 49 4e 4b |code, a |la THINK|
|000006d0| 20 43 2c 20 65 2e 67 2e | 20 4e 41 4e 46 46 2c 0d | C, e.g.| NANFF,.|
|000006e0| 6f 72 20 61 6c 61 20 4d | 50 57 20 43 2c 20 65 2e |or ala M|PW C, e.|
|000006f0| 67 2e 20 4e 41 4e 5b 32 | 35 35 5d 2e 29 20 42 61 |g. NAN[2|55].) Ba|
|00000700| 63 6b 73 6c 61 73 68 20 | 65 73 63 61 70 65 73 2c |ckslash |escapes,|
|00000710| 20 65 2e 67 2e 20 5c 30 | 30 37 20 61 6e 64 20 5c | e.g. \0|07 and \|
|00000720| 6e 2c 20 77 69 74 68 69 | 6e 20 73 69 6e 67 6c 65 |n, withi|n single|
|00000730| 0d 6f 72 20 64 6f 75 62 | 6c 65 20 71 75 6f 74 65 |.or doub|le quote|
|00000740| 73 20 61 72 65 20 66 75 | 6c 6c 79 20 73 75 70 70 |s are fu|lly supp|
|00000750| 6f 72 74 65 64 20 28 65 | 78 63 65 70 74 20 74 68 |orted (e|xcept th|
|00000760| 61 74 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 73 |at there| is no s|
|00000770| 75 70 70 6f 72 74 20 66 | 6f 72 20 53 74 61 6e 64 |upport f|or Stand|
|00000780| 61 72 64 20 43 27 73 0d | 6e 65 77 20 69 6e 74 65 |ard C's.|new inte|
|00000790| 72 6e 61 74 69 6f 6e 61 | 6c 20 22 77 69 64 65 22 |rnationa|l "wide"|
|000007a0| 20 63 68 61 72 61 63 74 | 65 72 73 20 61 6e 64 20 | charact|ers and |
|000007b0| 74 72 69 67 72 61 70 68 | 20 73 65 71 75 65 6e 63 |trigraph| sequenc|
|000007c0| 65 73 29 2e 20 41 20 73 | 69 6d 70 6c 65 20 76 61 |es). A s|imple va|
|000007d0| 72 69 61 62 6c 65 0d 6e | 61 6d 65 2c 20 61 73 20 |riable.n|ame, as |
|000007e0| 69 6e 20 43 2c 20 63 6f | 6e 73 69 73 74 73 20 6f |in C, co|nsists o|
|000007f0| 66 20 61 6e 20 61 6c 70 | 68 61 62 65 74 69 63 20 |f an alp|habetic |
|00000800| 63 68 61 72 61 63 74 65 | 72 20 28 6f 72 20 5f 29 |characte|r (or _)|
|00000810| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 61 6e 79 | followe|d by any|
|00000820| 20 6e 75 6d 62 65 72 0d | 6f 66 20 61 6c 70 68 61 | number.|of alpha|
|00000830| 6e 75 6d 65 72 69 63 20 | 63 68 61 72 61 63 74 65 |numeric |characte|
|00000840| 72 73 20 28 6f 72 20 5f | 29 2e 20 54 6f 20 73 69 |rs (or _|). To si|
|00000850| 6d 75 6c 61 74 65 20 73 | 74 72 75 63 74 75 72 65 |mulate s|tructure|
|00000860| 20 72 65 66 65 72 65 6e | 63 65 73 2c 20 63 6f 6d | referen|ces, com|
|00000870| 70 6f 73 69 74 65 0d 6e | 61 6d 65 73 20 61 72 65 |posite.n|ames are|
|00000880| 20 61 6c 6c 6f 77 65 64 | 2c 20 6d 61 64 65 20 75 | allowed|, made u|
|00000890| 70 20 6f 66 20 73 69 6d | 70 6c 65 20 6e 61 6d 65 |p of sim|ple name|
|000008a0| 73 20 6a 6f 69 6e 65 64 | 20 62 79 20 22 2e 22 20 |s joined| by "." |
|000008b0| 6f 72 20 22 2d 3e 22 2c | 20 65 2e 67 2e 0d 09 61 |or "->",| e.g...a|
|000008c0| 2d 3e 62 2e 63 3d 30 2e | 30 3b 20 6d 79 53 74 72 |->b.c=0.|0; myStr|
|000008d0| 75 63 74 2d 3e 62 3d 49 | 4e 46 3b 0d 55 6e 6c 69 |uct->b=I|NF;.Unli|
|000008e0| 6b 65 20 53 74 61 6e 64 | 61 72 64 20 43 2c 20 65 |ke Stand|ard C, e|
|000008f0| 61 63 68 20 6c 69 6e 65 | 20 6d 75 73 74 20 62 65 |ach line| must be|
|00000900| 20 6c 65 73 73 20 74 68 | 61 6e 20 42 55 46 46 45 | less th|an BUFFE|
|00000910| 52 5f 53 49 5a 45 20 63 | 68 61 72 61 63 74 65 72 |R_SIZE c|haracter|
|00000920| 73 20 6c 6f 6e 67 20 28 | 63 75 72 72 65 6e 74 6c |s long (|currentl|
|00000930| 79 0d 35 31 32 29 2e 20 | 4c 69 6e 65 73 20 74 68 |y.512). |Lines th|
|00000940| 61 74 20 65 6e 64 20 77 | 69 74 68 20 74 68 65 20 |at end w|ith the |
|00000950| 62 61 63 6b 73 6c 61 73 | 68 20 63 68 61 72 61 63 |backslas|h charac|
|00000960| 74 65 72 20 5c 20 61 72 | 65 20 73 70 6c 69 63 65 |ter \ ar|e splice|
|00000970| 64 20 74 6f 20 74 68 65 | 20 6e 65 78 74 20 62 79 |d to the| next by|
|00000980| 0d 64 65 6c 65 74 69 6e | 67 20 74 68 65 20 62 61 |.deletin|g the ba|
|00000990| 63 6b 73 6c 61 73 68 20 | 61 6e 64 20 74 68 65 20 |ckslash |and the |
|000009a0| 66 6f 6c 6c 6f 77 69 6e | 67 20 6e 65 77 6c 69 6e |followin|g newlin|
|000009b0| 65 20 63 68 61 72 61 63 | 74 65 72 2e 20 54 68 65 |e charac|ter. The|
|000009c0| 20 73 70 6c 69 63 65 20 | 6d 61 79 20 62 65 0d 62 | splice |may be.b|
|000009d0| 65 74 77 65 65 6e 20 74 | 6f 6b 65 6e 73 20 6f 72 |etween t|okens or|
|000009e0| 20 69 6e 73 69 64 65 20 | 61 20 63 6f 6d 6d 65 6e | inside |a commen|
|000009f0| 74 20 6f 72 20 73 74 72 | 69 6e 67 20 6c 69 74 65 |t or str|ing lite|
|00000a00| 72 61 6c 2c 20 62 75 74 | 2c 20 75 6e 6c 69 6b 65 |ral, but|, unlike|
|00000a10| 20 43 2c 20 74 68 65 20 | 73 70 6c 69 63 65 0d 6d | C, the |splice.m|
|00000a20| 61 79 20 6e 6f 74 20 62 | 72 65 61 6b 20 61 20 74 |ay not b|reak a t|
|00000a30| 6f 6b 65 6e 2e 20 41 64 | 6a 61 63 65 6e 74 20 73 |oken. Ad|jacent s|
|00000a40| 74 72 69 6e 67 20 6c 69 | 74 65 72 61 6c 73 20 22 |tring li|terals "|
|00000a50| 61 22 20 22 62 22 20 61 | 72 65 20 63 6f 6e 63 61 |a" "b" a|re conca|
|00000a60| 74 65 6e 61 74 65 64 20 | 22 61 62 22 2c 0d 61 73 |tenated |"ab",.as|
|00000a70| 20 73 70 65 63 69 66 69 | 65 64 20 62 79 20 53 74 | specifi|ed by St|
|00000a80| 61 6e 64 61 72 64 20 43 | 2e 20 28 54 68 65 20 6c |andard C|. (The l|
|00000a90| 69 6e 65 20 73 70 6c 69 | 63 69 6e 67 20 61 6e 64 |ine spli|cing and|
|00000aa0| 20 61 64 6a 61 63 65 6e | 74 20 63 6f 6e 63 61 74 | adjacen|t concat|
|00000ab0| 65 6e 61 74 69 6f 6e 20 | 61 6c 6c 6f 77 0d 63 72 |enation |allow.cr|
|00000ac0| 65 61 74 69 6f 6e 20 6f | 66 20 73 74 72 69 6e 67 |eation o|f string|
|00000ad0| 73 20 6f 66 20 61 72 62 | 69 74 72 61 72 79 20 6c |s of arb|itrary l|
|00000ae0| 65 6e 67 74 68 2c 20 6e | 6f 74 20 6c 69 6d 69 74 |ength, n|ot limit|
|00000af0| 65 64 20 62 79 20 42 55 | 46 46 45 52 5f 53 49 5a |ed by BU|FFER_SIZ|
|00000b00| 45 2e 29 20 4e 6f 20 66 | 75 72 74 68 65 72 0d 65 |E.) No f|urther.e|
|00000b10| 78 70 72 65 73 73 69 6f | 6e 20 65 76 61 6c 75 61 |xpressio|n evalua|
|00000b20| 74 69 6f 6e 20 69 73 20 | 73 75 70 70 6f 72 74 65 |tion is |supporte|
|00000b30| 64 2e 20 4e 6f 20 6f 74 | 68 65 72 20 6f 70 65 72 |d. No ot|her oper|
|00000b40| 61 74 6f 72 73 2c 20 65 | 2e 67 2e 20 2b 2d 26 2a |ators, e|.g. +-&*|
|00000b50| 2c 20 65 6e 75 6d 73 2c | 20 63 61 73 74 73 2c 0d |, enums,| casts,.|
|00000b60| 65 2e 67 2e 20 28 75 6e | 73 69 67 6e 65 64 20 6c |e.g. (un|signed l|
|00000b70| 6f 6e 67 29 2c 20 6f 72 | 20 6e 75 6d 62 65 72 20 |ong), or| number |
|00000b80| 73 75 66 66 69 78 65 73 | 2c 20 65 2e 67 2e 20 55 |suffixes|, e.g. U|
|00000b90| 4c 2c 20 61 72 65 20 61 | 6c 6c 6f 77 65 64 2e 20 |L, are a|llowed. |
|00000ba0| 4e 6f 20 6d 61 63 72 6f | 73 20 6f 72 0d 70 72 65 |No macro|s or.pre|
|00000bb0| 70 72 6f 63 65 73 73 6f | 72 20 64 69 72 65 63 74 |processo|r direct|
|00000bc0| 69 76 65 73 20 61 72 65 | 20 73 75 70 70 6f 72 74 |ives are| support|
|00000bd0| 65 64 20 28 65 2e 67 2e | 20 23 69 66 2c 20 23 64 |ed (e.g.| #if, #d|
|00000be0| 65 66 69 6e 65 29 2e 20 | 54 68 65 20 73 79 6e 74 |efine). |The synt|
|00000bf0| 61 78 20 72 75 6c 65 73 | 20 61 72 65 0d 73 74 72 |ax rules| are.str|
|00000c00| 69 63 74 6c 79 20 65 6e | 66 6f 72 63 65 64 2e 20 |ictly en|forced. |
|00000c10| 49 66 20 52 65 61 64 41 | 73 73 69 67 6e 6d 65 6e |If ReadA|ssignmen|
|00000c20| 74 4c 69 6e 65 20 63 61 | 6e 27 74 20 69 6e 74 65 |tLine ca|n't inte|
|00000c30| 72 70 72 65 74 20 79 6f | 75 72 20 66 69 6c 65 20 |rpret yo|ur file |
|00000c40| 69 74 20 77 69 6c 6c 2c | 20 61 74 0d 74 68 65 20 |it will,| at.the |
|00000c50| 63 61 6c 6c 65 72 27 73 | 20 6f 70 74 69 6f 6e 2c |caller's| option,|
|00000c60| 20 65 69 74 68 65 72 20 | 72 65 74 75 72 6e 20 61 | either |return a|
|00000c70| 6e 20 65 72 72 6f 72 20 | 63 6f 64 65 20 6f 72 20 |n error |code or |
|00000c80| 63 61 6c 6c 20 50 72 69 | 6e 74 66 45 78 69 74 20 |call Pri|ntfExit |
|00000c90| 77 69 74 68 20 61 6e 0d | 65 72 72 6f 72 20 6d 65 |with an.|error me|
|00000ca0| 73 73 61 67 65 20 70 69 | 6e 70 6f 69 6e 74 69 6e |ssage pi|npointin|
|00000cb0| 67 20 74 68 65 20 65 72 | 72 6f 72 2e 0d 0d 41 73 |g the er|ror...As|
|00000cc0| 73 69 67 6e 2e 63 20 73 | 75 70 70 6f 72 74 73 20 |sign.c s|upports |
|00000cd0| 6f 6e 65 20 6f 70 74 69 | 6f 6e 61 6c 20 65 78 74 |one opti|onal ext|
|00000ce0| 65 6e 73 69 6f 6e 20 62 | 65 79 6f 6e 64 20 43 20 |ension b|eyond C |
|00000cf0| 73 79 6e 74 61 78 20 74 | 68 61 74 20 6d 61 6b 65 |syntax t|hat make|
|00000d00| 73 20 69 74 20 70 72 61 | 63 74 69 63 61 6c 0d 74 |s it pra|ctical.t|
|00000d10| 6f 20 73 61 76 65 20 69 | 6d 61 67 65 73 20 77 69 |o save i|mages wi|
|00000d20| 74 68 69 6e 20 61 73 73 | 69 67 6e 6d 65 6e 74 20 |thin ass|ignment |
|00000d30| 66 69 6c 65 73 2e 20 49 | 66 20 61 20 6e 6f 6e 2d |files. I|f a non-|
|00000d40| 73 74 72 69 6e 67 20 76 | 61 72 69 61 62 6c 65 20 |string v|ariable |
|00000d50| 69 73 20 61 73 73 69 67 | 6e 65 64 20 61 0d 73 74 |is assig|ned a.st|
|00000d60| 72 69 6e 67 2c 20 0d 09 | 61 3d 22 31 31 31 31 61 |ring, ..|a="1111a|
|00000d70| 61 61 61 31 31 31 31 22 | 3b 0d 74 68 65 6e 20 52 |aaa1111"|;.then R|
|00000d80| 65 61 64 41 73 73 69 67 | 6e 6d 65 6e 74 4c 69 6e |eadAssig|nmentLin|
|00000d90| 65 20 61 73 73 75 6d 65 | 73 20 74 68 61 74 20 74 |e assume|s that t|
|00000da0| 68 65 20 73 74 72 69 6e | 67 20 69 73 20 61 6e 20 |he strin|g is an |
|00000db0| 65 6e 63 6f 64 69 6e 67 | 20 6f 66 20 74 68 65 20 |encoding| of the |
|00000dc0| 64 65 73 69 72 65 64 0d | 62 69 6e 61 72 79 20 6f |desired.|binary o|
|00000dd0| 62 6a 65 63 74 20 61 73 | 20 61 20 68 65 78 61 64 |bject as| a hexad|
|00000de0| 65 63 69 6d 61 6c 20 6e | 75 6d 62 65 72 2c 20 61 |ecimal n|umber, a|
|00000df0| 6e 64 20 61 73 73 69 67 | 6e 73 20 74 68 65 20 64 |nd assig|ns the d|
|00000e00| 65 63 6f 64 65 64 20 62 | 69 6e 61 72 79 20 6f 62 |ecoded b|inary ob|
|00000e10| 6a 65 63 74 20 74 6f 0d | 74 68 65 20 76 61 72 69 |ject to.|the vari|
|00000e20| 61 62 6c 65 2c 20 6f 6e | 65 20 62 79 74 65 20 66 |able, on|e byte f|
|00000e30| 6f 72 20 65 76 65 72 79 | 20 74 77 6f 20 68 65 78 |or every| two hex|
|00000e40| 20 64 69 67 69 74 73 2e | 20 54 68 69 73 20 69 73 | digits.| This is|
|00000e50| 20 73 75 70 70 6f 72 74 | 65 64 20 66 6f 72 20 62 | support|ed for b|
|00000e60| 6f 74 68 0d 73 63 61 6c | 61 72 20 61 6e 64 20 61 |oth.scal|ar and a|
|00000e70| 72 72 61 79 20 76 61 72 | 69 61 62 6c 65 73 2d 2d |rray var|iables--|
|00000e80| 74 72 65 61 74 69 6e 67 | 20 65 69 74 68 65 72 20 |treating| either |
|00000e90| 61 6e 20 65 6c 65 6d 65 | 6e 74 20 6f 72 20 61 20 |an eleme|nt or a |
|00000ea0| 72 6f 77 20 28 6c 61 73 | 74 20 73 75 62 73 63 72 |row (las|t subscr|
|00000eb0| 69 70 74 2c 0d 66 61 73 | 74 65 73 74 20 63 68 61 |ipt,.fas|test cha|
|00000ec0| 6e 67 69 6e 67 29 20 6f | 66 20 74 68 65 20 61 72 |nging) o|f the ar|
|00000ed0| 72 61 79 20 61 73 20 61 | 20 73 69 6e 67 6c 65 20 |ray as a| single |
|00000ee0| 62 69 6e 61 72 79 20 6f | 62 6a 65 63 74 2d 2d 73 |binary o|bject--s|
|00000ef0| 6f 20 79 6f 75 20 63 61 | 6e 20 6c 6f 61 64 20 6f |o you ca|n load o|
|00000f00| 72 0d 73 61 76 65 20 61 | 20 68 75 67 65 20 72 6f |r.save a| huge ro|
|00000f10| 77 20 62 79 20 61 20 73 | 69 6e 67 6c 65 20 73 74 |w by a s|ingle st|
|00000f20| 61 74 65 6d 65 6e 74 20 | 74 68 61 74 20 61 73 73 |atement |that ass|
|00000f30| 69 67 6e 73 20 61 20 68 | 75 6d 75 6e 67 6f 75 73 |igns a h|umungous|
|00000f40| 20 73 74 72 69 6e 67 20 | 6f 66 20 68 65 78 0d 64 | string |of hex.d|
|00000f50| 61 74 61 20 74 6f 20 74 | 68 65 20 61 72 72 61 79 |ata to t|he array|
|00000f60| 2e 20 45 2e 67 2e 20 69 | 66 20 6d 5b 5d 5b 5d 20 |. E.g. i|f m[][] |
|00000f70| 69 73 20 6f 66 20 74 79 | 70 65 20 63 68 61 72 2c |is of ty|pe char,|
|00000f80| 20 74 68 65 6e 20 74 68 | 65 20 66 6f 6c 6c 6f 77 | then th|e follow|
|00000f90| 69 6e 67 20 74 68 72 65 | 65 20 6c 69 6e 65 73 0d |ing thre|e lines.|
|00000fa0| 61 72 65 20 65 71 75 69 | 76 61 6c 65 6e 74 2e 0d |are equi|valent..|
|00000fb0| 09 6d 5b 33 5d 5b 30 5d | 3d 31 35 35 3b 6d 5b 33 |.m[3][0]|=155;m[3|
|00000fc0| 5d 5b 31 5d 3d 39 35 3b | 6d 5b 33 5d 5b 32 5d 3d |][1]=95;|m[3][2]=|
|00000fd0| 32 35 35 3b 6d 5b 33 5d | 5b 33 5d 3d 31 32 37 3b |255;m[3]|[3]=127;|
|00000fe0| 0d 09 6d 5b 33 5d 5b 30 | 5d 3d 22 39 62 22 3b 6d |..m[3][0|]="9b";m|
|00000ff0| 5b 33 5d 5b 31 5d 3d 22 | 35 66 22 3b 6d 5b 33 5d |[3][1]="|5f";m[3]|
|00001000| 5b 32 5d 3d 22 66 66 22 | 3b 6d 5b 33 5d 5b 33 5d |[2]="ff"|;m[3][3]|
|00001010| 3d 22 37 66 22 3b 0d 09 | 6d 5b 33 5d 3d 22 39 62 |="7f";..|m[3]="9b|
|00001020| 35 66 66 66 37 66 22 3b | 0d 54 68 69 73 20 66 6f |5fff7f";|.This fo|
|00001030| 72 6d 61 74 20 69 73 20 | 73 75 70 70 6f 72 74 65 |rmat is |supporte|
|00001040| 64 20 62 79 20 62 6f 74 | 68 20 52 65 61 64 41 73 |d by bot|h ReadAs|
|00001050| 73 69 67 6e 6d 65 6e 74 | 4c 69 6e 65 20 61 6e 64 |signment|Line and|
|00001060| 20 50 72 69 6e 74 41 6e | 41 73 73 69 67 6e 6d 65 | PrintAn|Assignme|
|00001070| 6e 74 2e 20 57 68 65 6e | 0d 72 65 61 64 69 6e 67 |nt. When|.reading|
|00001080| 20 61 6e 20 61 73 73 69 | 67 6e 6d 65 6e 74 20 66 | an assi|gnment f|
|00001090| 69 6c 65 2c 20 61 20 62 | 69 6e 61 72 79 20 6f 62 |ile, a b|inary ob|
|000010a0| 6a 65 63 74 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |ject con|taining |
|000010b0| 6f 6e 6c 79 20 6f 6e 65 | 20 65 6c 65 6d 65 6e 74 |only one| element|
|000010c0| 2c 20 61 73 20 69 6e 0d | 6d 5b 33 5d 5b 30 5d 3d |, as in.|m[3][0]=|
|000010d0| 22 39 62 22 2c 20 69 73 | 20 69 6e 74 65 72 70 72 |"9b", is| interpr|
|000010e0| 65 74 65 64 20 61 73 20 | 61 20 73 63 61 6c 61 72 |eted as |a scalar|
|000010f0| 2c 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 61 73 |, rather| than as|
|00001100| 20 61 20 72 6f 77 20 6f | 66 20 6c 65 6e 67 74 68 | a row o|f length|
|00001110| 20 31 2e 20 57 68 65 6e | 0d 77 72 69 74 69 6e 67 | 1. When|.writing|
|00001120| 20 61 6e 20 61 73 73 69 | 67 6e 6d 65 6e 74 20 66 | an assi|gnment f|
|00001130| 69 6c 65 20 61 20 77 68 | 6f 6c 65 20 72 6f 77 20 |ile a wh|ole row |
|00001140| 6f 66 20 65 61 63 68 20 | 61 72 72 61 79 20 69 73 |of each |array is|
|00001150| 20 61 73 73 69 67 6e 65 | 64 20 61 74 20 6f 6e 63 | assigne|d at onc|
|00001160| 65 0d 6d 5b 33 5d 3d 22 | 39 62 35 66 66 66 37 66 |e.m[3]="|9b5fff7f|
|00001170| 22 20 75 6e 6c 65 73 73 | 20 74 68 65 20 72 6f 77 |" unless| the row|
|00001180| 20 69 73 20 6f 6e 6c 79 | 20 6f 6e 65 20 65 6c 65 | is only| one ele|
|00001190| 6d 65 6e 74 20 6c 6f 6e | 67 2c 20 69 6e 20 77 68 |ment lon|g, in wh|
|000011a0| 69 63 68 20 63 61 73 65 | 20 65 61 63 68 0d 65 6c |ich case| each.el|
|000011b0| 65 6d 65 6e 74 20 69 73 | 20 61 73 73 69 67 6e 65 |ement is| assigne|
|000011c0| 64 20 73 65 70 61 72 61 | 74 65 6c 79 2e 20 54 68 |d separa|tely. Th|
|000011d0| 65 20 64 65 66 61 75 6c | 74 20 62 65 68 61 76 69 |e defaul|t behavi|
|000011e0| 6f 72 20 6f 66 20 52 65 | 61 64 41 73 73 69 67 6e |or of Re|adAssign|
|000011f0| 6d 65 6e 74 4c 69 6e 65 | 20 61 6e 64 0d 50 72 69 |mentLine| and.Pri|
|00001200| 6e 74 41 6e 41 73 73 69 | 67 6e 6d 65 6e 74 20 69 |ntAnAssi|gnment i|
|00001210| 73 20 74 6f 20 75 73 65 | 20 74 68 65 20 62 69 6e |s to use| the bin|
|00001220| 61 72 79 20 6f 62 6a 65 | 63 74 20 61 73 73 69 67 |ary obje|ct assig|
|00001230| 6e 6d 65 6e 74 73 20 6f | 6e 6c 79 20 66 6f 72 20 |nments o|nly for |
|00001240| 69 6e 74 65 67 65 72 73 | 0d 28 69 6e 63 6c 75 64 |integers|.(includ|
|00001250| 69 6e 67 20 63 68 61 72 | 29 20 61 6e 64 20 74 6f |ing char|) and to|
|00001260| 20 77 72 69 74 65 20 69 | 74 20 6f 6e 6c 79 20 77 | write i|t only w|
|00001270| 68 65 6e 20 69 74 20 77 | 6f 75 6c 64 20 67 72 65 |hen it w|ould gre|
|00001280| 61 74 6c 79 20 72 65 64 | 75 63 65 20 74 68 65 20 |atly red|uce the |
|00001290| 66 69 6c 65 0d 73 69 7a | 65 2e 20 54 68 65 20 6d |file.siz|e. The m|
|000012a0| 6f 74 69 76 61 74 69 6f | 6e 20 66 6f 72 20 74 68 |otivatio|n for th|
|000012b0| 69 73 20 65 78 74 65 6e | 73 69 6f 6e 20 69 73 20 |is exten|sion is |
|000012c0| 74 6f 20 70 72 6f 76 69 | 64 65 20 61 20 63 6f 6d |to provi|de a com|
|000012d0| 70 61 63 74 20 77 61 79 | 20 74 6f 20 73 70 65 63 |pact way| to spec|
|000012e0| 69 66 79 0d 74 68 65 20 | 63 6f 6e 74 65 6e 74 73 |ify.the |contents|
|000012f0| 20 6f 66 20 61 6e 20 69 | 6d 61 67 65 2c 20 74 79 | of an i|mage, ty|
|00001300| 70 69 63 61 6c 6c 79 20 | 61 6e 20 61 72 72 61 79 |pically |an array|
|00001310| 20 6f 66 20 73 6d 61 6c | 6c 20 69 6e 74 65 67 65 | of smal|l intege|
|00001320| 72 73 2e 20 49 74 20 6d | 61 79 20 61 6c 73 6f 20 |rs. It m|ay also |
|00001330| 62 65 0d 75 73 65 66 75 | 6c 20 69 6e 20 73 69 74 |be.usefu|l in sit|
|00001340| 75 61 74 69 6f 6e 73 20 | 77 68 65 72 65 20 6f 6e |uations |where on|
|00001350| 65 20 77 61 6e 74 73 20 | 74 6f 20 73 61 76 65 20 |e wants |to save |
|00001360| 61 6e 64 20 72 65 73 74 | 6f 72 65 20 74 68 65 20 |and rest|ore the |
|00001370| 65 78 61 63 74 20 76 61 | 6c 75 65 20 6f 66 20 61 |exact va|lue of a|
|00001380| 0d 64 6f 75 62 6c 65 2c | 20 73 69 6e 63 65 20 74 |.double,| since t|
|00001390| 79 70 69 63 61 6c 20 69 | 6d 70 6c 65 6d 65 6e 74 |ypical i|mplement|
|000013a0| 61 74 69 6f 6e 73 20 6f | 66 20 74 68 65 20 43 20 |ations o|f the C |
|000013b0| 73 74 64 69 6f 20 6c 69 | 62 72 61 72 79 20 6c 6f |stdio li|brary lo|
|000013c0| 73 65 20 61 20 66 65 77 | 20 62 69 74 73 20 6f 66 |se a few| bits of|
|000013d0| 0d 70 72 65 63 69 73 69 | 6f 6e 20 74 72 61 6e 73 |.precisi|on trans|
|000013e0| 6c 61 74 69 6e 67 20 74 | 6f 20 6f 72 20 66 72 6f |lating t|o or fro|
|000013f0| 6d 20 64 65 63 69 6d 61 | 6c 20 72 65 70 72 65 73 |m decima|l repres|
|00001400| 65 6e 74 61 74 69 6f 6e | 73 20 6f 66 20 66 6c 6f |entation|s of flo|
|00001410| 61 74 69 6e 67 20 6e 75 | 6d 62 65 72 73 2e 0d 59 |ating nu|mbers..Y|
|00001420| 6f 75 20 67 72 61 6e 74 | 20 6f 72 20 64 65 6e 79 |ou grant| or deny|
|00001430| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 74 6f 20 72 | permiss|ion to r|
|00001440| 65 61 64 20 61 6e 64 20 | 77 72 69 74 65 20 68 65 |ead and |write he|
|00001450| 78 2d 65 6e 63 6f 64 65 | 64 20 62 69 6e 61 72 79 |x-encode|d binary|
|00001460| 20 6f 62 6a 65 63 74 73 | 20 62 79 0d 73 65 74 74 | objects| by.sett|
|00001470| 69 6e 67 20 6f 72 20 63 | 6c 65 61 72 69 6e 67 20 |ing or c|learing |
|00001480| 74 77 6f 20 66 6c 61 67 | 20 62 69 74 73 2c 20 61 |two flag| bits, a|
|00001490| 73 73 69 67 6e 4e 6f 48 | 65 78 49 6e 74 73 20 61 |ssignNoH|exInts a|
|000014a0| 6e 64 20 61 73 73 69 67 | 6e 48 65 78 46 6c 6f 61 |nd assig|nHexFloa|
|000014b0| 74 73 2c 20 77 68 69 63 | 68 0d 61 72 65 20 65 78 |ts, whic|h.are ex|
|000014c0| 70 6c 61 69 6e 65 64 20 | 62 65 6c 6f 77 2e 0d 0d |plained |below...|
|000014d0| 44 45 53 43 52 49 42 49 | 4e 47 20 59 4f 55 52 20 |DESCRIBI|NG YOUR |
|000014e0| 56 41 52 49 41 42 4c 45 | 53 20 54 4f 20 54 48 45 |VARIABLE|S TO THE|
|000014f0| 20 41 53 53 49 47 4e 20 | 52 4f 55 54 49 4e 45 53 | ASSIGN |ROUTINES|
|00001500| 0d 0d 54 68 65 20 41 73 | 73 69 67 6e 20 72 6f 75 |..The As|sign rou|
|00001510| 74 69 6e 65 73 20 75 73 | 65 20 79 6f 75 72 20 70 |tines us|e your p|
|00001520| 72 65 2d 65 78 69 73 74 | 69 6e 67 20 43 20 76 61 |re-exist|ing C va|
|00001530| 72 69 61 62 6c 65 73 2e | 20 45 61 63 68 20 43 20 |riables.| Each C |
|00001540| 76 61 72 69 61 62 6c 65 | 20 74 68 61 74 0d 79 6f |variable| that.yo|
|00001550| 75 20 77 61 6e 74 20 74 | 6f 20 62 65 20 61 62 6c |u want t|o be abl|
|00001560| 65 20 74 6f 20 6c 6f 61 | 64 20 66 72 6f 6d 20 28 |e to loa|d from (|
|00001570| 6f 72 20 70 72 69 6e 74 | 20 74 6f 29 20 61 6e 20 |or print| to) an |
|00001580| 61 73 73 69 67 6e 6d 65 | 6e 74 20 66 69 6c 65 20 |assignme|nt file |
|00001590| 6d 75 73 74 20 62 65 0d | 64 65 73 63 72 69 62 65 |must be.|describe|
|000015a0| 64 20 62 79 20 61 20 22 | 44 65 73 63 72 69 70 74 |d by a "|Descript|
|000015b0| 69 6f 6e 22 20 73 74 72 | 75 63 74 75 72 65 2c 20 |ion" str|ucture, |
|000015c0| 77 68 69 63 68 20 68 61 | 73 20 66 69 65 6c 64 73 |which ha|s fields|
|000015d0| 20 66 6f 72 20 74 68 65 | 20 74 79 70 65 2c 20 6e | for the| type, n|
|000015e0| 61 6d 65 2c 0d 61 64 64 | 72 65 73 73 20 28 22 70 |ame,.add|ress ("p|
|000015f0| 74 72 22 29 2c 20 61 6e | 64 20 6f 74 68 65 72 20 |tr"), an|d other |
|00001600| 63 68 61 72 61 63 74 65 | 72 69 73 74 69 63 73 20 |characte|ristics |
|00001610| 6f 66 20 79 6f 75 72 20 | 43 20 76 61 72 69 61 62 |of your |C variab|
|00001620| 6c 65 2e 0d 09 74 79 70 | 65 64 65 66 20 73 74 72 |le...typ|edef str|
|00001630| 75 63 74 20 7b 0d 09 09 | 73 68 6f 72 74 20 74 79 |uct {...|short ty|
|00001640| 70 65 3b 0d 09 09 75 6e | 73 69 67 6e 65 64 20 73 |pe;...un|signed s|
|00001650| 69 7a 65 64 4f 6e 63 65 | 3a 31 3b 09 2f 2a 20 49 |izedOnce|:1;./* I|
|00001660| 73 20 64 69 6d 5b 5d 20 | 6d 65 61 6e 69 6e 67 66 |s dim[] |meaningf|
|00001670| 75 6c 3f 20 2a 2f 0d 09 | 09 75 6e 73 69 67 6e 65 |ul? */..|.unsigne|
|00001680| 64 20 73 69 7a 65 64 3a | 31 3b 09 09 2f 2a 20 49 |d sized:|1;../* I|
|00001690| 73 20 64 69 6d 5b 5d 20 | 66 69 6e 61 6c 3f 20 2a |s dim[] |final? *|
|000016a0| 2f 0d 09 09 75 6e 73 69 | 67 6e 65 64 20 6d 61 6c |/...unsi|gned mal|
|000016b0| 6c 6f 63 65 64 3a 31 3b | 09 2f 2a 20 41 6c 6c 6f |loced:1;|./* Allo|
|000016c0| 63 61 74 65 64 20 62 79 | 20 6d 61 6c 6c 6f 63 3f |cated by| malloc?|
|000016d0| 20 2a 2f 0d 09 09 63 68 | 61 72 20 2a 6e 61 6d 65 | */...ch|ar *name|
|000016e0| 3b 0d 09 09 76 6f 69 64 | 20 2a 70 74 72 3b 09 09 |;...void| *ptr;..|
|000016f0| 09 09 2f 2a 20 66 6f 72 | 20 61 72 72 61 79 2c 20 |../* for| array, |
|00001700| 61 64 64 72 65 73 73 20 | 6f 66 20 65 6c 65 6d 65 |address |of eleme|
|00001710| 6e 74 20 7a 65 72 6f 20 | 2a 2f 0d 09 09 6c 6f 6e |nt zero |*/...lon|
|00001720| 67 20 64 69 6d 5b 41 53 | 53 49 47 4e 5f 44 49 4d |g dim[AS|SIGN_DIM|
|00001730| 53 5d 3b 09 2f 2a 20 7a | 65 72 6f 20 69 6e 64 69 |S];./* z|ero indi|
|00001740| 63 61 74 65 73 20 61 20 | 73 63 61 6c 61 72 20 2a |cates a |scalar *|
|00001750| 2f 0d 09 09 6c 6f 6e 67 | 20 66 69 72 73 74 45 6c |/...long| firstEl|
|00001760| 65 6d 65 6e 74 3b 2f 2a | 20 73 75 62 73 63 72 69 |ement;/*| subscri|
|00001770| 70 74 20 6f 66 20 66 69 | 72 73 74 20 65 6c 65 6d |pt of fi|rst elem|
|00001780| 65 6e 74 20 6f 66 20 6c | 61 73 74 20 64 69 6d 65 |ent of l|ast dime|
|00001790| 6e 73 69 6f 6e 2e 20 55 | 73 75 61 6c 6c 79 20 30 |nsion. U|sually 0|
|000017a0| 20 2a 2f 0d 09 09 63 6f | 6e 73 74 20 63 68 61 72 | */...co|nst char|
|000017b0| 20 2a 63 6f 6d 6d 65 6e | 74 3b 09 2f 2a 20 74 65 | *commen|t;./* te|
|000017c0| 78 74 20 73 74 72 69 6e | 67 2c 20 6f 72 20 4e 55 |xt strin|g, or NU|
|000017d0| 4c 4c 20 2a 2f 0d 09 7d | 20 44 65 73 63 72 69 70 |LL */..}| Descrip|
|000017e0| 74 69 6f 6e 3b 0d 54 68 | 65 20 72 6f 75 74 69 6e |tion;.Th|e routin|
|000017f0| 65 73 20 44 65 73 63 72 | 69 62 65 2c 20 44 65 73 |es Descr|ibe, Des|
|00001800| 63 72 69 62 65 41 72 72 | 61 79 2c 20 61 6e 64 20 |cribeArr|ay, and |
|00001810| 44 65 73 63 72 69 62 65 | 46 69 72 73 74 4c 61 73 |Describe|FirstLas|
|00001820| 74 20 61 72 65 20 63 6f | 6e 76 65 6e 69 65 6e 74 |t are co|nvenient|
|00001830| 20 77 61 79 73 0d 74 6f | 20 73 65 74 20 61 6c 6c | ways.to| set all|
|00001840| 20 74 68 65 20 66 69 65 | 6c 64 73 2e 20 55 73 65 | the fie|lds. Use|
|00001850| 20 74 68 65 73 65 20 72 | 6f 75 74 69 6e 65 73 20 | these r|outines |
|00001860| 28 69 6e 73 74 65 61 64 | 20 6f 66 20 65 78 70 6c |(instead| of expl|
|00001870| 69 63 69 74 6c 79 20 6c | 6f 61 64 69 6e 67 20 74 |icitly l|oading t|
|00001880| 68 65 0d 66 69 65 6c 64 | 73 20 79 6f 75 72 73 65 |he.field|s yourse|
|00001890| 6c 66 29 20 74 6f 20 65 | 6e 68 61 6e 63 65 20 74 |lf) to e|nhance t|
|000018a0| 68 65 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |he compa|tibility|
|000018b0| 20 6f 66 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d | of your| program|
|000018c0| 73 20 77 69 74 68 20 66 | 75 74 75 72 65 0d 65 6e |s with f|uture.en|
|000018d0| 68 61 6e 63 65 6d 65 6e | 74 73 20 74 6f 20 41 73 |hancemen|ts to As|
|000018e0| 73 69 67 6e 2e 63 2c 20 | 77 68 69 63 68 20 6d 69 |sign.c, |which mi|
|000018f0| 67 68 74 20 72 65 64 65 | 66 69 6e 65 20 74 68 65 |ght rede|fine the|
|00001900| 20 66 69 65 6c 64 73 20 | 6f 66 20 74 68 65 20 44 | fields |of the D|
|00001910| 65 73 63 72 69 70 74 69 | 6f 6e 0d 73 74 72 75 63 |escripti|on.struc|
|00001920| 74 75 72 65 2e 0d 09 44 | 65 73 63 72 69 70 74 69 |ture...D|escripti|
|00001930| 6f 6e 20 44 65 73 63 72 | 69 62 65 28 73 68 6f 72 |on Descr|ibe(shor|
|00001940| 74 20 74 79 70 65 2c 76 | 6f 69 64 20 2a 70 74 72 |t type,v|oid *ptr|
|00001950| 2c 63 68 61 72 20 2a 6e | 61 6d 65 2c 63 6f 6e 73 |,char *n|ame,cons|
|00001960| 74 20 63 68 61 72 20 2a | 63 6f 6d 6d 65 6e 74 29 |t char *|comment)|
|00001970| 3b 0d 09 73 68 6f 72 74 | 20 6e 3b 0d 09 64 5b 69 |;..short| n;..d[i|
|00001980| 2b 2b 5d 3d 44 65 73 63 | 72 69 62 65 28 73 68 6f |++]=Desc|ribe(sho|
|00001990| 72 74 54 79 70 65 2c 26 | 6e 2c 22 6e 22 2c 22 68 |rtType,&|n,"n","h|
|000019a0| 65 6c 6c 6f 22 29 3b 0d | 54 68 65 20 61 76 61 69 |ello");.|The avai|
|000019b0| 6c 61 62 6c 65 20 74 79 | 70 65 73 20 66 61 6c 6c |lable ty|pes fall|
|000019c0| 20 69 6e 74 6f 20 74 68 | 72 65 65 20 67 72 6f 75 | into th|ree grou|
|000019d0| 70 73 2e 20 54 68 65 20 | 62 61 73 69 63 20 74 79 |ps. The |basic ty|
|000019e0| 70 65 73 20 63 6f 72 72 | 65 73 70 6f 6e 64 20 74 |pes corr|espond t|
|000019f0| 6f 20 74 68 65 0d 62 61 | 73 69 63 20 74 79 70 65 |o the.ba|sic type|
|00001a00| 73 20 69 6e 20 43 3a 20 | 63 68 61 72 54 79 70 65 |s in C: |charType|
|00001a10| 2c 20 75 6e 73 69 67 6e | 65 64 43 68 61 72 54 79 |, unsign|edCharTy|
|00001a20| 70 65 2c 20 73 68 6f 72 | 74 54 79 70 65 2c 20 75 |pe, shor|tType, u|
|00001a30| 6e 73 69 67 6e 65 64 53 | 68 6f 72 74 54 79 70 65 |nsignedS|hortType|
|00001a40| 2c 0d 6c 6f 6e 67 54 79 | 70 65 2c 20 75 6e 73 69 |,.longTy|pe, unsi|
|00001a50| 67 6e 65 64 4c 6f 6e 67 | 54 79 70 65 2c 20 66 6c |gnedLong|Type, fl|
|00001a60| 6f 61 74 54 79 70 65 2c | 20 73 68 6f 72 74 44 6f |oatType,| shortDo|
|00001a70| 75 62 6c 65 54 79 70 65 | 2c 20 61 6e 64 20 64 6f |ubleType|, and do|
|00001a80| 75 62 6c 65 54 79 70 65 | 2e 20 41 0d 73 65 63 6f |ubleType|. A.seco|
|00001a90| 6e 64 2c 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |nd, corr|espondin|
|00001aa0| 67 2c 20 67 72 6f 75 70 | 20 6f 66 20 74 79 70 65 |g, group| of type|
|00001ab0| 73 2c 20 61 64 64 69 6e | 67 20 74 68 65 20 77 6f |s, addin|g the wo|
|00001ac0| 72 64 20 22 50 74 72 22 | 2c 20 72 65 71 75 65 73 |rd "Ptr"|, reques|
|00001ad0| 74 73 20 64 79 6e 61 6d | 69 63 0d 61 72 72 61 79 |ts dynam|ic.array|
|00001ae0| 20 61 6c 6c 6f 63 61 74 | 69 6f 6e 3a 20 63 68 61 | allocat|ion: cha|
|00001af0| 72 50 74 72 54 79 70 65 | 2c 20 75 6e 73 69 67 6e |rPtrType|, unsign|
|00001b00| 65 64 43 68 61 72 50 74 | 72 54 79 70 65 2c 20 73 |edCharPt|rType, s|
|00001b10| 68 6f 72 74 50 74 72 54 | 79 70 65 2c 0d 75 6e 73 |hortPtrT|ype,.uns|
|00001b20| 69 67 6e 65 64 53 68 6f | 72 74 50 74 72 54 79 70 |ignedSho|rtPtrTyp|
|00001b30| 65 2c 20 6c 6f 6e 67 50 | 74 72 54 79 70 65 2c 20 |e, longP|trType, |
|00001b40| 75 6e 73 69 67 6e 65 64 | 4c 6f 6e 67 50 74 72 54 |unsigned|LongPtrT|
|00001b50| 79 70 65 2c 20 66 6c 6f | 61 74 50 74 72 54 79 70 |ype, flo|atPtrTyp|
|00001b60| 65 2c 0d 73 68 6f 72 74 | 44 6f 75 62 6c 65 50 74 |e,.short|DoublePt|
|00001b70| 72 54 79 70 65 2c 20 61 | 6e 64 20 64 6f 75 62 6c |rType, a|nd doubl|
|00001b80| 65 50 74 72 54 79 70 65 | 2e 20 54 68 65 20 74 68 |ePtrType|. The th|
|00001b90| 69 72 64 20 67 72 6f 75 | 70 20 63 6f 6e 73 69 73 |ird grou|p consis|
|00001ba0| 74 73 20 73 6f 6c 65 6c | 79 20 6f 66 20 74 68 65 |ts solel|y of the|
|00001bb0| 0d 22 73 74 72 69 6e 67 | 54 79 70 65 22 2c 20 77 |."string|Type", w|
|00001bc0| 68 69 63 68 20 69 73 20 | 68 61 6e 64 6c 65 64 20 |hich is |handled |
|00001bd0| 73 6f 6d 65 77 68 61 74 | 20 64 69 66 66 65 72 65 |somewhat| differe|
|00001be0| 6e 74 6c 79 20 66 72 6f | 6d 20 74 68 65 20 63 68 |ntly fro|m the ch|
|00001bf0| 61 72 50 74 72 54 79 70 | 65 2e 20 28 4e 6f 74 65 |arPtrTyp|e. (Note|
|00001c00| 3a 0d 73 69 6e 63 65 20 | 53 74 61 6e 64 61 72 64 |:.since |Standard|
|00001c10| 20 43 20 64 6f 65 73 6e | 27 74 20 61 6c 6c 6f 77 | C doesn|'t allow|
|00001c20| 20 74 68 65 20 22 73 68 | 6f 72 74 20 64 6f 75 62 | the "sh|ort doub|
|00001c30| 6c 65 22 20 74 79 70 65 | 2c 20 74 68 65 20 73 68 |le" type|, the sh|
|00001c40| 6f 72 74 44 6f 75 62 6c | 65 54 79 70 65 20 61 6e |ortDoubl|eType an|
|00001c50| 64 0d 73 68 6f 72 74 44 | 6f 75 62 6c 65 50 74 72 |d.shortD|oublePtr|
|00001c60| 54 79 70 65 20 61 72 65 | 20 63 6f 6e 64 69 74 69 |Type are| conditi|
|00001c70| 6f 6e 61 6c 6c 79 20 63 | 6f 6d 70 69 6c 65 64 2c |onally c|ompiled,|
|00001c80| 20 63 6f 6e 74 72 6f 6c | 6c 65 64 20 62 79 20 53 | control|led by S|
|00001c90| 48 4f 52 54 5f 44 4f 55 | 42 4c 45 5f 4f 4b 2c 0d |HORT_DOU|BLE_OK,.|
|00001ca0| 77 68 69 63 68 20 69 73 | 20 64 65 66 69 6e 65 64 |which is| defined|
|00001cb0| 20 69 6e 20 56 69 64 65 | 6f 54 6f 6f 6c 62 6f 78 | in Vide|oToolbox|
|00001cc0| 2e 68 2e 29 20 54 68 65 | 20 6e 61 6d 65 20 61 72 |.h.) The| name ar|
|00001cd0| 67 75 6d 65 6e 74 20 73 | 74 72 69 6e 67 20 69 73 |gument s|tring is|
|00001ce0| 20 75 73 65 64 20 69 6e | 20 72 65 61 64 69 6e 67 | used in| reading|
|00001cf0| 20 74 68 65 0d 61 73 73 | 69 67 6e 6d 65 6e 74 20 | the.ass|ignment |
|00001d00| 66 69 6c 65 2e 20 54 68 | 65 20 70 74 72 20 61 72 |file. Th|e ptr ar|
|00001d10| 67 75 6d 65 6e 74 20 73 | 68 6f 75 6c 64 20 62 65 |gument s|hould be|
|00001d20| 20 74 68 65 20 61 64 64 | 72 65 73 73 20 6f 66 20 | the add|ress of |
|00001d30| 61 20 43 20 76 61 72 69 | 61 62 6c 65 20 6f 66 20 |a C vari|able of |
|00001d40| 74 68 65 0d 74 79 70 65 | 20 73 70 65 63 69 66 69 |the.type| specifi|
|00001d50| 65 64 20 62 79 20 74 68 | 65 20 74 79 70 65 20 61 |ed by th|e type a|
|00001d60| 72 67 75 6d 65 6e 74 20 | 28 65 2e 67 2e 20 66 6c |rgument |(e.g. fl|
|00001d70| 6f 61 74 29 2e 20 57 68 | 65 6e 20 74 68 65 20 74 |oat). Wh|en the t|
|00001d80| 79 70 65 20 69 73 20 6f | 6e 65 20 6f 66 20 74 68 |ype is o|ne of th|
|00001d90| 65 0d 50 74 72 20 74 79 | 70 65 73 2c 20 6f 72 20 |e.Ptr ty|pes, or |
|00001da0| 73 74 72 69 6e 67 54 79 | 70 65 2c 20 74 68 65 6e |stringTy|pe, then|
|00001db0| 20 74 68 65 20 43 20 76 | 61 72 69 61 62 6c 65 20 | the C v|ariable |
|00001dc0| 73 68 6f 75 6c 64 20 62 | 65 20 61 20 70 6f 69 6e |should b|e a poin|
|00001dd0| 74 65 72 20 6f 66 20 74 | 68 65 0d 61 70 70 72 6f |ter of t|he.appro|
|00001de0| 70 72 69 61 74 65 20 6b | 69 6e 64 2c 20 73 6f 20 |priate k|ind, so |
|00001df0| 74 68 65 20 22 70 74 72 | 22 20 61 72 67 75 6d 65 |the "ptr|" argume|
|00001e00| 6e 74 20 79 6f 75 20 73 | 75 70 70 6c 79 20 77 69 |nt you s|upply wi|
|00001e10| 6c 6c 20 62 65 20 74 68 | 65 20 61 64 64 72 65 73 |ll be th|e addres|
|00001e20| 73 20 6f 66 20 74 68 61 | 74 0d 70 6f 69 6e 74 65 |s of tha|t.pointe|
|00001e30| 72 2e 20 54 68 65 20 6c | 61 73 74 20 61 72 67 75 |r. The l|ast argu|
|00001e40| 6d 65 6e 74 20 74 6f 20 | 44 65 73 63 72 69 62 65 |ment to |Describe|
|00001e50| 28 29 20 69 73 20 63 6f | 6d 6d 65 6e 74 2c 20 77 |() is co|mment, w|
|00001e60| 68 69 63 68 20 6d 75 73 | 74 20 62 65 20 61 20 73 |hich mus|t be a s|
|00001e70| 74 72 69 6e 67 20 6f 72 | 0d 4e 55 4c 4c 2e 20 41 |tring or|.NULL. A|
|00001e80| 6e 79 20 63 61 6c 6c 20 | 74 6f 20 50 72 69 6e 74 |ny call |to Print|
|00001e90| 41 6e 41 73 73 69 67 6e | 6d 65 6e 74 28 29 20 77 |AnAssign|ment() w|
|00001ea0| 69 6c 6c 20 70 72 69 6e | 74 20 74 68 65 20 63 6f |ill prin|t the co|
|00001eb0| 6d 6d 65 6e 74 20 28 69 | 66 20 6e 6f 74 20 4e 55 |mment (i|f not NU|
|00001ec0| 4c 4c 29 20 61 66 74 65 | 72 0d 74 68 65 20 61 73 |LL) afte|r.the as|
|00001ed0| 73 69 67 6e 6d 65 6e 74 | 20 73 74 61 74 65 6d 65 |signment| stateme|
|00001ee0| 6e 74 2c 20 73 75 72 72 | 6f 75 6e 64 69 6e 67 20 |nt, surr|ounding |
|00001ef0| 69 74 20 62 79 20 2f 2a | 20 2a 2f 2e 0d 09 44 65 |it by /*| */...De|
|00001f00| 73 63 72 69 70 74 69 6f | 6e 20 44 65 73 63 72 69 |scriptio|n Descri|
|00001f10| 62 65 41 72 72 61 79 28 | 73 68 6f 72 74 20 74 79 |beArray(|short ty|
|00001f20| 70 65 2c 76 6f 69 64 20 | 2a 70 74 72 2c 63 68 61 |pe,void |*ptr,cha|
|00001f30| 72 20 2a 6e 61 6d 65 2c | 63 6f 6e 73 74 20 63 68 |r *name,|const ch|
|00001f40| 61 72 20 2a 63 6f 6d 6d | 65 6e 74 2c 2e 2e 2e 29 |ar *comm|ent,...)|
|00001f50| 3b 0d 09 64 6f 75 62 6c | 65 20 62 5b 33 5d 5b 34 |;..doubl|e b[3][4|
|00001f60| 5d 3b 0d 09 64 5b 69 2b | 2b 5d 3d 44 65 73 63 72 |];..d[i+|+]=Descr|
|00001f70| 69 62 65 41 72 72 61 79 | 28 64 6f 75 62 6c 65 54 |ibeArray|(doubleT|
|00001f80| 79 70 65 2c 26 62 2c 22 | 62 22 2c 22 63 6f 65 66 |ype,&b,"|b","coef|
|00001f90| 66 69 63 69 65 6e 74 73 | 22 2c 33 4c 2c 34 4c 2c |ficients|",3L,4L,|
|00001fa0| 30 4c 29 3b 0d 46 6f 72 | 20 74 68 65 20 62 61 73 |0L);.For| the bas|
|00001fb0| 69 63 20 61 6e 64 20 73 | 74 72 69 6e 67 20 74 79 |ic and s|tring ty|
|00001fc0| 70 65 73 2c 20 74 68 65 | 20 73 75 70 70 6c 69 65 |pes, the| supplie|
|00001fd0| 64 20 43 20 76 61 72 69 | 61 62 6c 65 20 63 61 6e |d C vari|able can|
|00001fe0| 20 62 65 20 61 6e 20 61 | 72 72 61 79 2c 20 77 68 | be an a|rray, wh|
|00001ff0| 6f 73 65 0d 64 69 6d 65 | 6e 73 69 6f 6e 73 20 61 |ose.dime|nsions a|
|00002000| 72 65 20 73 70 65 63 69 | 66 69 65 64 20 61 73 20 |re speci|fied as |
|00002010| 61 64 64 69 74 69 6f 6e | 61 6c 20 61 72 67 75 6d |addition|al argum|
|00002020| 65 6e 74 73 20 74 6f 20 | 44 65 73 63 72 69 62 65 |ents to |Describe|
|00002030| 41 72 72 61 79 2e 20 54 | 68 65 72 65 20 6d 61 79 |Array. T|here may|
|00002040| 0d 62 65 20 75 70 20 74 | 6f 20 41 53 53 49 47 4e |.be up t|o ASSIGN|
|00002050| 5f 44 49 4d 53 20 64 69 | 6d 65 6e 73 69 6f 6e 73 |_DIMS di|mensions|
|00002060| 2e 20 45 61 63 68 20 64 | 69 6d 65 6e 73 69 6f 6e |. Each d|imension|
|00002070| 20 6d 75 73 74 20 62 65 | 20 61 20 6c 6f 6e 67 2c | must be| a long,|
|00002080| 20 61 6e 64 20 74 68 65 | 20 61 72 67 75 6d 65 6e | and the| argumen|
|00002090| 74 0d 6c 69 73 74 20 6d | 75 73 74 20 62 65 20 74 |t.list m|ust be t|
|000020a0| 65 72 6d 69 6e 61 74 65 | 64 20 62 79 20 30 4c 2c |erminate|d by 0L,|
|000020b0| 20 69 2e 65 2e 20 61 20 | 7a 65 72 6f 20 6f 66 20 | i.e. a |zero of |
|000020c0| 74 79 70 65 20 6c 6f 6e | 67 2e 0d 0d 41 72 72 61 |type lon|g...Arra|
|000020d0| 79 73 20 6f 66 20 73 74 | 72 69 6e 67 54 79 70 65 |ys of st|ringType|
|000020e0| 20 61 72 65 20 61 6c 6c | 6f 77 65 64 2c 20 65 2e | are all|owed, e.|
|000020f0| 67 2e 20 0d 09 63 68 61 | 72 20 2a 6e 69 63 6b 6e |g. ..cha|r *nickn|
|00002100| 61 6d 65 73 5b 31 30 5d | 3b 0d 09 44 65 73 63 72 |ames[10]|;..Descr|
|00002110| 69 62 65 41 72 72 61 79 | 28 73 74 72 69 6e 67 54 |ibeArray|(stringT|
|00002120| 79 70 65 2c 26 6e 69 63 | 6b 6e 61 6d 65 73 2c 22 |ype,&nic|knames,"|
|00002130| 6e 69 63 6b 6e 61 6d 65 | 73 22 2c 4e 55 4c 4c 2c |nickname|s",NULL,|
|00002140| 31 30 4c 2c 30 4c 29 3b | 0d 42 75 74 2c 20 69 6e |10L,0L);|.But, in|
|00002150| 20 74 68 61 74 20 63 61 | 73 65 2c 20 6d 61 6c 6c | that ca|se, mall|
|00002160| 6f 63 65 64 20 73 70 61 | 63 65 20 66 6f 72 20 61 |oced spa|ce for a|
|00002170| 20 73 74 72 69 6e 67 20 | 69 73 20 6e 6f 74 20 66 | string |is not f|
|00002180| 72 65 65 64 20 77 68 65 | 6e 20 61 20 6e 65 77 20 |reed whe|n a new |
|00002190| 73 74 72 69 6e 67 20 0d | 69 73 20 61 73 73 69 67 |string .|is assig|
|000021a0| 6e 65 64 2e 0d 0d 52 45 | 41 44 49 4e 47 20 41 4e |ned...RE|ADING AN|
|000021b0| 20 41 53 53 49 47 4e 4d | 45 4e 54 20 46 49 4c 45 | ASSIGNM|ENT FILE|
|000021c0| 0d 0d 52 65 61 64 41 73 | 73 69 67 6e 6d 65 6e 74 |..ReadAs|signment|
|000021d0| 4c 69 6e 65 20 64 6f 65 | 73 20 61 6c 6c 20 74 68 |Line doe|s all th|
|000021e0| 65 20 72 65 61 64 69 6e | 67 2e 20 52 65 61 64 41 |e readin|g. ReadA|
|000021f0| 73 73 69 67 6e 6d 65 6e | 74 42 6c 6f 63 6b 20 61 |ssignmen|tBlock a|
|00002200| 6e 64 0d 52 65 61 64 41 | 73 73 69 67 6e 6d 65 6e |nd.ReadA|ssignmen|
|00002210| 74 46 69 6c 65 20 6a 75 | 73 74 20 63 61 6c 6c 20 |tFile ju|st call |
|00002220| 52 65 61 64 41 73 73 69 | 67 6e 6d 65 6e 74 4c 69 |ReadAssi|gnmentLi|
|00002230| 6e 65 20 72 65 70 65 61 | 74 65 64 6c 79 2e 20 4f |ne repea|tedly. O|
|00002240| 6e 65 20 62 79 20 6f 6e | 65 2c 0d 52 65 61 64 41 |ne by on|e,.ReadA|
|00002250| 73 73 69 67 6e 6d 65 6e | 74 4c 69 6e 65 20 72 65 |ssignmen|tLine re|
|00002260| 61 64 73 20 61 73 73 69 | 67 6e 6d 65 6e 74 73 20 |ads assi|gnments |
|00002270| 66 72 6f 6d 20 74 68 65 | 20 61 73 73 69 67 6e 6d |from the| assignm|
|00002280| 65 6e 74 20 66 69 6c 65 | 20 28 75 6e 74 69 6c 20 |ent file| (until |
|00002290| 69 74 20 72 65 61 63 68 | 65 73 0d 74 68 65 20 65 |it reach|es.the e|
|000022a0| 6e 64 20 6f 66 20 74 68 | 65 20 6c 69 6e 65 2c 20 |nd of th|e line, |
|000022b0| 6f 72 20 64 65 74 65 63 | 74 73 20 61 6e 20 65 72 |or detec|ts an er|
|000022c0| 72 6f 72 29 2e 20 53 79 | 6e 74 61 78 20 65 72 72 |ror). Sy|ntax err|
|000022d0| 6f 72 73 20 61 72 65 20 | 72 65 70 6f 72 74 65 64 |ors are |reported|
|000022e0| 2e 0d 52 65 61 64 41 73 | 73 69 67 6e 6d 65 6e 74 |..ReadAs|signment|
|000022f0| 4c 69 6e 65 20 67 65 74 | 73 20 61 20 76 61 72 69 |Line get|s a vari|
|00002300| 61 62 6c 65 20 6e 61 6d | 65 20 66 72 6f 6d 20 74 |able nam|e from t|
|00002310| 68 65 20 61 73 73 69 67 | 6e 6d 65 6e 74 20 66 69 |he assig|nment fi|
|00002320| 6c 65 20 61 6e 64 20 6c | 6f 6f 6b 73 20 66 6f 72 |le and l|ooks for|
|00002330| 20 61 0d 6d 61 74 63 68 | 69 6e 67 20 6e 61 6d 65 | a.match|ing name|
|00002340| 20 69 6e 20 74 68 65 20 | 75 73 65 72 2d 73 75 70 | in the |user-sup|
|00002350| 70 6c 69 65 64 20 44 65 | 73 63 72 69 70 74 69 6f |plied De|scriptio|
|00002360| 6e 20 61 72 72 61 79 2e | 20 41 6e 79 20 69 6e 63 |n array.| Any inc|
|00002370| 6f 6e 73 69 73 74 65 6e | 63 79 20 6f 66 20 74 68 |onsisten|cy of th|
|00002380| 65 0d 61 73 73 69 67 6e | 6d 65 6e 74 20 73 74 61 |e.assign|ment sta|
|00002390| 74 65 6d 65 6e 74 20 77 | 69 74 68 20 74 68 65 20 |tement w|ith the |
|000023a0| 76 61 72 69 61 62 6c 65 | 27 73 20 64 65 63 6c 61 |variable|'s decla|
|000023b0| 72 65 64 20 74 79 70 65 | 20 61 6e 64 20 64 69 6d |red type| and dim|
|000023c0| 65 6e 73 69 6f 6e 73 20 | 69 73 0d 72 65 70 6f 72 |ensions |is.repor|
|000023d0| 74 65 64 2e 20 54 68 65 | 6e 20 74 68 65 20 61 73 |ted. The|n the as|
|000023e0| 73 69 67 6e 6d 65 6e 74 | 20 69 73 20 6d 61 64 65 |signment| is made|
|000023f0| 2e 0d 0d 41 73 73 69 67 | 6e 6d 65 6e 74 20 74 6f |...Assig|nment to|
|00002400| 20 62 61 73 69 63 20 76 | 61 72 69 61 62 6c 65 73 | basic v|ariables|
|00002410| 20 69 73 20 73 74 72 61 | 69 67 68 74 66 6f 72 77 | is stra|ightforw|
|00002420| 61 72 64 2c 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |ard, equ|ivalent |
|00002430| 74 6f 20 61 73 73 69 67 | 6e 6d 65 6e 74 20 69 6e |to assig|nment in|
|00002440| 0d 61 20 43 20 70 72 6f | 67 72 61 6d 2c 20 65 2e |.a C pro|gram, e.|
|00002450| 67 2e 0d 09 61 5b 32 5d | 5b 31 5d 3d 33 2e 30 3b |g...a[2]|[1]=3.0;|
|00002460| 0d 57 68 65 6e 20 52 65 | 61 64 41 73 73 69 67 6e |.When Re|adAssign|
|00002470| 6d 65 6e 74 4c 69 6e 65 | 20 61 73 73 69 67 6e 73 |mentLine| assigns|
|00002480| 20 61 20 73 74 72 69 6e | 67 20 74 6f 20 61 20 73 | a strin|g to a s|
|00002490| 74 72 69 6e 67 54 79 70 | 65 20 76 61 72 69 61 62 |tringTyp|e variab|
|000024a0| 6c 65 2c 0d 09 73 3d 22 | 68 65 6c 6c 6f 20 77 6f |le,..s="|hello wo|
|000024b0| 72 6c 64 22 3b 0d 74 68 | 65 20 73 74 72 69 6e 67 |rld";.th|e string|
|000024c0| 20 69 73 20 61 6c 6c 6f | 63 61 74 65 64 20 62 79 | is allo|cated by|
|000024d0| 20 6d 61 6c 6c 6f 63 28 | 29 20 61 6e 64 20 74 68 | malloc(|) and th|
|000024e0| 65 20 73 74 72 69 6e 67 | 27 73 20 61 64 64 72 65 |e string|'s addre|
|000024f0| 73 73 20 69 73 20 70 6f | 6b 65 64 20 69 6e 74 6f |ss is po|ked into|
|00002500| 20 79 6f 75 72 0d 63 68 | 61 72 20 2a 20 76 61 72 | your.ch|ar * var|
|00002510| 69 61 62 6c 65 2e 20 50 | 72 69 6f 72 20 74 6f 20 |iable. P|rior to |
|00002520| 61 73 73 69 67 6e 6d 65 | 6e 74 20 6f 66 20 61 20 |assignme|nt of a |
|00002530| 73 74 72 69 6e 67 2c 20 | 46 72 65 65 41 44 65 73 |string, |FreeADes|
|00002540| 63 72 69 62 65 64 56 61 | 72 20 77 69 6c 6c 20 62 |cribedVa|r will b|
|00002550| 65 0d 63 61 6c 6c 65 64 | 2c 20 77 68 69 63 68 2c |e.called|, which,|
|00002560| 20 69 66 20 61 6e 79 20 | 70 72 65 2d 65 78 69 73 | if any |pre-exis|
|00002570| 74 69 6e 67 20 73 74 72 | 69 6e 67 20 77 61 73 20 |ting str|ing was |
|00002580| 61 6c 6c 6f 63 61 74 65 | 64 20 62 79 20 6d 61 6c |allocate|d by mal|
|00002590| 6c 6f 63 2d 2d 61 73 20 | 69 6e 64 69 63 61 74 65 |loc--as |indicate|
|000025a0| 64 0d 62 79 20 74 68 65 | 20 64 2d 3e 6d 61 6c 6c |d.by the| d->mall|
|000025b0| 6f 63 65 64 20 66 6c 61 | 67 2d 2d 77 69 6c 6c 20 |oced fla|g--will |
|000025c0| 66 72 65 65 20 69 74 2e | 20 59 6f 75 20 63 61 6e |free it.| You can|
|000025d0| 20 66 72 65 65 20 61 6c | 6c 20 79 6f 75 72 20 73 | free al|l your s|
|000025e0| 74 72 69 6e 67 73 20 28 | 61 6e 64 0d 50 74 72 54 |trings (|and.PtrT|
|000025f0| 79 70 65 20 76 61 72 69 | 61 62 6c 65 73 29 20 62 |ype vari|ables) b|
|00002600| 79 20 63 61 6c 6c 69 6e | 67 20 46 72 65 65 44 65 |y callin|g FreeDe|
|00002610| 73 63 72 69 62 65 64 56 | 61 72 73 2e 0d 0d 54 68 |scribedV|ars...Th|
|00002620| 65 20 50 74 72 54 79 70 | 65 20 76 61 72 69 61 62 |e PtrTyp|e variab|
|00002630| 6c 65 73 20 69 6e 69 74 | 69 61 6c 6c 79 20 68 61 |les init|ially ha|
|00002640| 76 65 20 6e 6f 20 73 70 | 61 63 65 20 61 6c 6c 6f |ve no sp|ace allo|
|00002650| 63 61 74 69 6f 6e 20 66 | 6f 72 20 73 74 6f 72 61 |cation f|or stora|
|00002660| 67 65 20 6f 66 20 64 61 | 74 61 2e 20 45 61 63 68 |ge of da|ta. Each|
|00002670| 0d 75 6e 61 6c 6c 6f 63 | 61 74 65 64 20 50 74 72 |.unalloc|ated Ptr|
|00002680| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 61 75 74 | variabl|e is aut|
|00002690| 6f 6d 61 74 69 63 61 6c | 6c 79 20 61 6c 6c 6f 63 |omatical|ly alloc|
|000026a0| 61 74 65 64 20 73 70 61 | 63 65 20 66 6f 72 20 61 |ated spa|ce for a|
|000026b0| 20 73 63 61 6c 61 72 20 | 6f 72 20 61 72 72 61 79 | scalar |or array|
|000026c0| 0d 64 69 6d 65 6e 73 69 | 6f 6e 65 64 20 6a 75 73 |.dimensi|oned jus|
|000026d0| 74 20 62 69 67 20 65 6e | 6f 75 67 68 20 74 6f 20 |t big en|ough to |
|000026e0| 63 6f 6e 74 61 69 6e 20 | 61 6c 6c 20 74 68 65 20 |contain |all the |
|000026f0| 61 73 73 69 67 6e 6d 65 | 6e 74 73 20 69 6e 20 74 |assignme|nts in t|
|00002700| 68 65 20 70 61 72 74 20 | 28 6f 72 0d 22 67 75 6c |he part |(or."gul|
|00002710| 70 22 29 20 6f 66 20 74 | 68 65 20 61 73 73 69 67 |p") of t|he assig|
|00002720| 6e 6d 65 6e 74 20 66 69 | 6c 65 20 74 68 61 74 20 |nment fi|le that |
|00002730| 74 68 65 20 75 73 65 72 | 20 68 61 73 20 6a 75 73 |the user| has jus|
|00002740| 74 20 61 73 6b 65 64 20 | 74 6f 20 72 65 61 64 3a |t asked |to read:|
|00002750| 20 61 20 6c 69 6e 65 2c | 20 61 0d 62 6c 6f 63 6b | a line,| a.block|
|00002760| 2c 20 6f 72 20 74 68 65 | 20 77 68 6f 6c 65 20 66 |, or the| whole f|
|00002770| 69 6c 65 2e 20 28 49 66 | 20 74 68 65 20 50 74 72 |ile. (If| the Ptr|
|00002780| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 64 69 6d | variabl|e is dim|
|00002790| 65 6e 73 69 6f 6e 65 64 | 2c 20 66 72 6f 6d 20 61 |ensioned|, from a|
|000027a0| 20 63 61 6c 6c 20 74 6f | 0d 44 65 73 63 72 69 62 | call to|.Describ|
|000027b0| 65 41 72 72 61 79 2c 20 | 62 75 74 20 6e 6f 74 20 |eArray, |but not |
|000027c0| 61 6c 6c 6f 63 61 74 65 | 64 2c 20 74 68 65 6e 20 |allocate|d, then |
|000027d0| 69 74 20 77 69 6c 6c 20 | 62 65 20 61 6c 6c 6f 63 |it will |be alloc|
|000027e0| 61 74 65 64 20 61 74 20 | 74 68 65 20 64 65 63 6c |ated at |the decl|
|000027f0| 61 72 65 64 0d 73 69 7a | 65 2e 29 20 4f 6e 63 65 |ared.siz|e.) Once|
|00002800| 20 61 6c 6c 6f 63 61 74 | 65 64 2c 20 74 68 65 20 | allocat|ed, the |
|00002810| 61 72 72 61 79 20 64 69 | 6d 65 6e 73 69 6f 6e 73 |array di|mensions|
|00002820| 20 61 72 65 20 66 69 78 | 65 64 2c 20 75 6e 6c 65 | are fix|ed, unle|
|00002830| 73 73 20 74 68 65 20 75 | 73 65 72 20 66 72 65 65 |ss the u|ser free|
|00002840| 73 20 74 68 65 0d 61 6c | 6c 6f 63 61 74 69 6f 6e |s the.al|location|
|00002850| 73 20 62 79 20 63 61 6c | 6c 69 6e 67 20 46 72 65 |s by cal|ling Fre|
|00002860| 65 44 65 73 63 72 69 62 | 65 64 50 74 72 56 61 72 |eDescrib|edPtrVar|
|00002870| 73 28 29 20 6f 72 20 46 | 72 65 65 44 65 73 63 72 |s() or F|reeDescr|
|00002880| 69 62 65 64 56 61 72 73 | 28 29 2c 20 77 68 69 63 |ibedVars|(), whic|
|00002890| 68 20 61 6c 73 6f 0d 63 | 6c 65 61 72 20 74 68 65 |h also.c|lear the|
|000028a0| 20 61 72 72 61 79 27 73 | 20 64 69 6d 65 6e 73 69 | array's| dimensi|
|000028b0| 6f 6e 73 20 28 77 68 65 | 74 68 65 72 20 73 65 74 |ons (whe|ther set|
|000028c0| 20 64 79 6e 61 6d 69 63 | 61 6c 6c 79 20 6f 72 20 | dynamic|ally or |
|000028d0| 62 79 20 61 6e 20 69 6e | 69 74 69 61 6c 20 63 61 |by an in|itial ca|
|000028e0| 6c 6c 20 74 6f 0d 44 65 | 73 63 72 69 62 65 41 72 |ll to.De|scribeAr|
|000028f0| 72 61 79 29 2e 20 52 65 | 73 74 72 69 63 74 69 6e |ray). Re|strictin|
|00002900| 67 20 74 68 65 20 73 63 | 61 6e 20 74 6f 20 74 68 |g the sc|an to th|
|00002910| 65 20 63 75 72 72 65 6e | 74 20 67 75 6c 70 20 6d |e curren|t gulp m|
|00002920| 61 6b 65 73 20 69 74 20 | 70 6f 73 73 69 62 6c 65 |akes it |possible|
|00002930| 20 74 6f 0d 72 65 61 64 | 20 61 73 73 69 67 6e 6d | to.read| assignm|
|00002940| 65 6e 74 20 66 69 6c 65 | 73 20 69 6e 20 77 68 69 |ent file|s in whi|
|00002950| 63 68 20 74 68 65 20 61 | 72 72 61 79 20 73 69 7a |ch the a|rray siz|
|00002960| 65 73 20 63 68 61 6e 67 | 65 20 66 72 6f 6d 20 67 |es chang|e from g|
|00002970| 75 6c 70 20 74 6f 20 67 | 75 6c 70 2c 0d 70 72 6f |ulp to g|ulp,.pro|
|00002980| 76 69 64 65 64 20 6f 6e | 6c 79 20 74 68 61 74 20 |vided on|ly that |
|00002990| 62 65 74 77 65 65 6e 20 | 67 75 6c 70 73 20 74 68 |between |gulps th|
|000029a0| 65 20 75 73 65 72 20 63 | 61 6c 6c 73 20 46 72 65 |e user c|alls Fre|
|000029b0| 65 44 65 73 63 72 69 62 | 65 64 50 74 72 56 61 72 |eDescrib|edPtrVar|
|000029c0| 73 28 29 20 6f 72 0d 46 | 72 65 65 44 65 73 63 72 |s() or.F|reeDescr|
|000029d0| 69 62 65 64 56 61 72 73 | 28 29 2e 20 41 6e 20 69 |ibedVars|(). An i|
|000029e0| 6e 63 6f 6e 73 69 73 74 | 65 6e 74 20 6e 75 6d 62 |nconsist|ent numb|
|000029f0| 65 72 20 6f 66 20 61 72 | 72 61 79 20 64 69 6d 65 |er of ar|ray dime|
|00002a00| 6e 73 69 6f 6e 73 0d 09 | 61 5b 30 5d 3d 31 3b 20 |nsions..|a[0]=1; |
|00002a10| 61 5b 30 5d 5b 30 5d 3d | 31 3b 0d 77 69 74 68 69 |a[0][0]=|1;.withi|
|00002a20| 6e 20 61 20 67 75 6c 70 | 20 69 73 20 66 6c 61 67 |n a gulp| is flag|
|00002a30| 67 65 64 20 61 73 20 61 | 6e 20 65 72 72 6f 72 2e |ged as a|n error.|
|00002a40| 20 0d 0d 52 4f 55 54 49 | 4e 45 53 0d 0d 09 73 74 | ..ROUTI|NES...st|
|00002a50| 72 65 61 6d 3d 4f 70 65 | 6e 43 61 6c 46 69 6c 65 |ream=Ope|nCalFile|
|00002a60| 57 72 69 74 65 28 66 69 | 6c 65 6e 61 6d 65 29 3b |Write(fi|lename);|
|00002a70| 0d 4f 70 65 6e 20 75 70 | 20 61 20 63 61 6c 69 62 |.Open up| a calib|
|00002a80| 72 61 74 69 6f 6e 20 66 | 69 6c 65 20 66 6f 72 20 |ration f|ile for |
|00002a90| 61 70 70 65 6e 64 69 6e | 67 2e 20 49 66 20 74 68 |appendin|g. If th|
|00002aa0| 65 20 66 69 6c 65 20 65 | 78 69 73 74 73 20 69 6e |e file e|xists in|
|00002ab0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 0d 64 69 72 | the cur|rent.dir|
|00002ac0| 65 63 74 6f 72 79 2c 20 | 69 74 20 69 73 20 75 73 |ectory, |it is us|
|00002ad0| 65 64 2e 20 49 66 20 6e | 6f 74 2c 20 74 68 65 6e |ed. If n|ot, then|
|00002ae0| 20 69 66 20 69 74 20 65 | 78 69 73 74 73 20 69 6e | if it e|xists in|
|00002af0| 20 74 68 65 20 50 72 65 | 66 65 72 65 6e 63 65 73 | the Pre|ferences|
|00002b00| 20 66 6f 6c 64 65 72 2c | 20 69 74 0d 75 73 65 64 | folder,| it.used|
|00002b10| 2e 20 49 66 20 6e 6f 74 | 2c 20 74 68 65 20 66 69 |. If not|, the fi|
|00002b20| 6c 65 20 69 73 20 63 72 | 65 61 74 65 64 20 69 6e |le is cr|eated in|
|00002b30| 20 74 68 65 20 50 72 65 | 66 65 72 65 6e 63 65 73 | the Pre|ferences|
|00002b40| 20 66 6f 6c 64 65 72 2e | 0d 0d 09 73 74 72 65 61 | folder.|...strea|
|00002b50| 6d 3d 4f 70 65 6e 43 61 | 6c 46 69 6c 65 52 65 61 |m=OpenCa|lFileRea|
|00002b60| 64 28 66 69 6c 65 6e 61 | 6d 65 29 3b 0d 4f 70 65 |d(filena|me);.Ope|
|00002b70| 6e 20 75 70 20 61 20 63 | 61 6c 69 62 72 61 74 69 |n up a c|alibrati|
|00002b80| 6f 6e 20 66 69 6c 65 20 | 66 6f 72 20 72 65 61 64 |on file |for read|
|00002b90| 69 6e 67 2e 20 46 69 72 | 73 74 20 6c 6f 6f 6b 73 |ing. Fir|st looks|
|00002ba0| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|00002bb0| 64 69 72 65 63 74 6f 72 | 79 2c 0d 74 68 65 6e 20 |director|y,.then |
|00002bc0| 69 6e 20 74 68 65 20 70 | 72 65 66 65 72 65 6e 63 |in the p|referenc|
|00002bd0| 65 73 20 66 6f 6c 64 65 | 72 2e 20 4f 6e 20 73 75 |es folde|r. On su|
|00002be0| 63 63 65 73 73 20 72 65 | 74 75 72 6e 73 20 74 68 |ccess re|turns th|
|00002bf0| 65 20 6f 70 65 6e 65 64 | 20 66 69 6c 65 27 73 20 |e opened| file's |
|00002c00| 73 74 72 65 61 6d 2e 20 | 4f 6e 0d 66 61 69 6c 75 |stream. |On.failu|
|00002c10| 72 65 20 72 65 74 75 72 | 6e 73 20 4e 55 4c 4c 2e |re retur|ns NULL.|
|00002c20| 0d 0d 09 73 74 72 65 61 | 6d 3d 4f 70 65 6e 43 61 |...strea|m=OpenCa|
|00002c30| 6c 46 69 6c 65 52 65 61 | 64 41 6e 64 43 68 65 63 |lFileRea|dAndChec|
|00002c40| 6b 28 66 69 6c 65 6e 61 | 6d 65 29 3b 0d 4f 70 65 |k(filena|me);.Ope|
|00002c50| 6e 20 75 70 20 61 20 63 | 61 6c 69 62 72 61 74 69 |n up a c|alibrati|
|00002c60| 6f 6e 20 66 69 6c 65 20 | 66 6f 72 20 72 65 61 64 |on file |for read|
|00002c70| 69 6e 67 2e 20 49 66 20 | 74 68 65 20 66 69 6c 65 |ing. If |the file|
|00002c80| 20 65 78 69 73 74 73 20 | 69 6e 20 74 68 65 20 63 | exists |in the c|
|00002c90| 75 72 72 65 6e 74 0d 64 | 69 72 65 63 74 6f 72 79 |urrent.d|irectory|
|00002ca0| 2c 20 69 74 20 69 73 20 | 75 73 65 64 2e 20 49 66 |, it is |used. If|
|00002cb0| 20 6e 6f 74 2c 20 74 68 | 65 6e 20 69 66 20 69 74 | not, th|en if it|
|00002cc0| 20 65 78 69 73 74 73 20 | 69 6e 20 74 68 65 20 70 | exists |in the p|
|00002cd0| 72 65 66 65 72 65 6e 63 | 65 73 20 66 6f 6c 64 65 |referenc|es folde|
|00002ce0| 72 2c 20 69 74 0d 75 73 | 65 64 2e 20 49 66 20 6e |r, it.us|ed. If n|
|00002cf0| 6f 20 66 69 6c 65 20 69 | 73 20 66 6f 75 6e 64 20 |o file i|s found |
|00002d00| 74 68 65 6e 20 70 72 69 | 6e 74 73 20 61 6e 20 65 |then pri|nts an e|
|00002d10| 72 72 6f 72 20 6d 65 73 | 73 61 67 65 20 61 6e 64 |rror mes|sage and|
|00002d20| 20 65 78 69 74 73 2e 0d | 0d 09 41 70 70 65 6e 64 | exits..|..Append|
|00002d30| 44 65 73 63 72 69 70 74 | 69 6f 6e 73 28 26 64 2c |Descript|ions(&d,|
|00002d40| 73 29 3b 0d 41 70 70 65 | 6e 64 73 20 74 68 65 20 |s);.Appe|nds the |
|00002d50| 73 65 63 6f 6e 64 20 64 | 65 73 63 72 69 70 74 69 |second d|escripti|
|00002d60| 6f 6e 73 20 61 72 72 61 | 79 20 6f 6e 74 6f 20 74 |ons arra|y onto t|
|00002d70| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 66 69 |he end o|f the fi|
|00002d80| 72 73 74 2c 20 77 68 69 | 63 68 20 69 73 0d 72 65 |rst, whi|ch is.re|
|00002d90| 61 6c 6c 6f 63 61 74 65 | 64 20 77 69 74 68 20 6d |allocate|d with m|
|00002da0| 6f 72 65 20 73 70 61 63 | 65 2e 20 54 68 65 20 73 |ore spac|e. The s|
|00002db0| 6f 75 72 63 65 20 61 72 | 72 61 79 20 69 73 20 6e |ource ar|ray is n|
|00002dc0| 6f 74 20 66 72 65 65 64 | 3b 20 74 68 65 20 63 61 |ot freed|; the ca|
|00002dd0| 6c 6c 65 72 20 73 68 6f | 75 6c 64 20 64 6f 0d 74 |ller sho|uld do.t|
|00002de0| 68 61 74 2e 20 42 6f 74 | 68 20 61 72 72 61 79 73 |hat. Bot|h arrays|
|00002df0| 20 6d 75 73 74 20 62 65 | 20 6e 75 6c 6c 2d 74 65 | must be| null-te|
|00002e00| 72 6d 69 6e 61 74 65 64 | 2e 0d 0d 09 43 6f 70 79 |rminated|....Copy|
|00002e10| 44 65 73 63 72 69 70 74 | 69 6f 6e 73 28 64 2c 73 |Descript|ions(d,s|
|00002e20| 29 3b 0d 43 6f 70 79 20 | 6f 6e 65 20 6e 75 6c 6c |);.Copy |one null|
|00002e30| 2d 74 65 72 6d 69 6e 61 | 74 65 64 20 61 72 72 61 |-termina|ted arra|
|00002e40| 79 20 6f 66 20 64 65 73 | 63 72 69 70 74 69 6f 6e |y of des|cription|
|00002e50| 73 20 74 6f 20 61 6e 6f | 74 68 65 72 2c 20 77 68 |s to ano|ther, wh|
|00002e60| 69 63 68 20 69 73 20 61 | 73 73 75 6d 65 64 20 74 |ich is a|ssumed t|
|00002e70| 6f 0d 62 65 20 62 69 67 | 20 65 6e 6f 75 67 68 2e |o.be big| enough.|
|00002e80| 0d 0d 09 64 3d 41 6c 6c | 6f 63 61 74 65 44 65 73 |...d=All|ocateDes|
|00002e90| 63 72 69 70 74 69 6f 6e | 73 28 6e 29 3b 0d 41 6c |cription|s(n);.Al|
|00002ea0| 6c 6f 63 61 74 65 20 73 | 70 61 63 65 20 66 6f 72 |locate s|pace for|
|00002eb0| 20 76 61 72 69 61 62 6c | 65 20 64 65 73 63 72 69 | variabl|e descri|
|00002ec0| 70 74 69 6f 6e 73 2e 20 | 41 64 64 73 20 6f 6e 65 |ptions. |Adds one|
|00002ed0| 20 74 6f 20 74 68 65 20 | 70 61 73 73 65 64 20 73 | to the |passed s|
|00002ee0| 69 7a 65 20 74 6f 20 68 | 6f 6c 64 0d 74 68 65 20 |ize to h|old.the |
|00002ef0| 6e 75 6c 6c 20 64 65 73 | 63 72 69 70 74 6f 72 2e |null des|criptor.|
|00002f00| 20 4e 75 6c 6c 73 20 74 | 68 65 20 66 69 72 73 74 | Nulls t|he first|
|00002f10| 20 65 6c 65 6d 65 6e 74 | 2e 0d 0d 09 46 72 65 65 | element|....Free|
|00002f20| 44 65 73 63 72 69 70 74 | 69 6f 6e 73 28 64 29 3b |Descript|ions(d);|
|00002f30| 0d 46 72 65 65 20 74 68 | 65 20 64 65 73 63 72 69 |.Free th|e descri|
|00002f40| 70 74 69 6f 6e 73 20 61 | 72 72 61 79 2e 20 44 6f |ptions a|rray. Do|
|00002f50| 65 73 6e 27 74 20 61 66 | 66 65 63 74 20 74 68 65 |esn't af|fect the|
|00002f60| 20 64 65 73 63 72 69 62 | 65 64 20 76 61 72 69 61 | describ|ed varia|
|00002f70| 62 6c 65 73 2e 0d 0d 09 | 6e 3d 4e 75 6d 62 65 72 |bles....|n=Number|
|00002f80| 4f 66 44 65 73 63 72 69 | 70 74 69 6f 6e 73 28 64 |OfDescri|ptions(d|
|00002f90| 29 3b 0d 46 69 6e 64 20 | 74 68 65 20 73 69 7a 65 |);.Find |the size|
|00002fa0| 20 6f 66 20 61 6e 20 61 | 72 72 61 79 20 6f 66 20 | of an a|rray of |
|00002fb0| 64 65 73 63 72 69 70 74 | 69 6f 6e 73 2e 20 44 6f |descript|ions. Do|
|00002fc0| 65 73 20 6e 6f 74 20 63 | 6f 75 6e 74 20 74 68 65 |es not c|ount the|
|00002fd0| 20 74 72 61 69 6c 69 6e | 67 20 6e 75 6c 6c 0d 64 | trailin|g null.d|
|00002fe0| 65 73 63 72 69 70 74 69 | 6f 6e 2e 0d 0d 09 64 5b |escripti|on....d[|
|00002ff0| 69 5d 3d 4e 75 6c 6c 44 | 65 73 63 72 69 70 74 69 |i]=NullD|escripti|
|00003000| 6f 6e 28 29 3b 0d 52 65 | 74 75 72 6e 73 20 61 20 |on();.Re|turns a |
|00003010| 6e 75 6c 6c 20 64 65 73 | 63 72 69 70 74 69 6f 6e |null des|cription|
|00003020| 2c 20 74 6f 20 74 65 72 | 6d 69 6e 61 74 65 20 61 |, to ter|minate a|
|00003030| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 73 20 61 72 | descrip|tions ar|
|00003040| 72 61 79 2e 0d 0d 09 69 | 66 28 20 49 73 4e 75 6c |ray....i|f( IsNul|
|00003050| 6c 44 65 73 63 72 69 70 | 74 69 6f 6e 28 64 5b 69 |lDescrip|tion(d[i|
|00003060| 5d 29 20 29 2e 2e 2e 3b | 0d 44 65 74 65 72 6d 69 |]) )...;|.Determi|
|00003070| 6e 65 20 77 68 65 74 68 | 65 72 20 77 65 20 61 72 |ne wheth|er we ar|
|00003080| 65 20 6c 6f 6f 6b 69 6e | 67 20 61 74 20 61 20 6e |e lookin|g at a n|
|00003090| 75 6c 6c 20 64 65 73 63 | 72 69 70 74 69 6f 6e 2e |ull desc|ription.|
|000030a0| 20 49 6d 70 6c 65 6d 65 | 6e 74 65 64 20 61 73 20 | Impleme|nted as |
|000030b0| 61 20 6d 61 63 72 6f 2e | 0d 0d 44 65 73 63 72 69 |a macro.|..Descri|
|000030c0| 70 74 69 6f 6e 20 44 65 | 73 63 72 69 62 65 28 73 |ption De|scribe(s|
|000030d0| 68 6f 72 74 20 74 79 70 | 65 2c 76 6f 69 64 20 2a |hort typ|e,void *|
|000030e0| 70 74 72 2c 63 68 61 72 | 20 2a 6e 61 6d 65 2c 63 |ptr,char| *name,c|
|000030f0| 6f 6e 73 74 20 63 68 61 | 72 20 2a 63 6f 6d 6d 65 |onst cha|r *comme|
|00003100| 6e 74 29 3b 0d 44 65 73 | 63 72 69 70 74 69 6f 6e |nt);.Des|cription|
|00003110| 20 44 65 73 63 72 69 62 | 65 41 72 72 61 79 28 73 | Describ|eArray(s|
|00003120| 68 6f 72 74 20 74 79 70 | 65 2c 76 6f 69 64 20 2a |hort typ|e,void *|
|00003130| 70 74 72 2c 63 68 61 72 | 20 2a 6e 61 6d 65 2c 63 |ptr,char| *name,c|
|00003140| 6f 6e 73 74 20 63 68 61 | 72 20 2a 63 6f 6d 6d 65 |onst cha|r *comme|
|00003150| 6e 74 2c 2e 2e 2e 29 3b | 0d 09 64 6f 75 62 6c 65 |nt,...);|..double|
|00003160| 20 61 2c 2a 70 2c 78 5b | 33 5d 3b 0d 09 64 5b 69 | a,*p,x[|3];..d[i|
|00003170| 2b 2b 5d 3d 44 65 73 63 | 72 69 62 65 28 64 6f 75 |++]=Desc|ribe(dou|
|00003180| 62 6c 65 54 79 70 65 2c | 26 61 2c 22 61 22 2c 22 |bleType,|&a,"a","|
|00003190| 68 65 6c 6c 6f 22 29 3b | 0d 09 64 5b 69 2b 2b 5d |hello");|..d[i++]|
|000031a0| 3d 44 65 73 63 72 69 62 | 65 28 64 6f 75 62 6c 65 |=Describ|e(double|
|000031b0| 50 74 72 54 79 70 65 2c | 26 70 2c 22 70 22 2c 4e |PtrType,|&p,"p",N|
|000031c0| 55 4c 4c 29 3b 0d 09 64 | 5b 69 2b 2b 5d 3d 44 65 |ULL);..d|[i++]=De|
|000031d0| 73 63 72 69 62 65 41 72 | 72 61 79 28 64 6f 75 62 |scribeAr|ray(doub|
|000031e0| 6c 65 54 79 70 65 2c 26 | 78 2c 22 78 22 2c 4e 55 |leType,&|x,"x",NU|
|000031f0| 4c 4c 2c 33 4c 2c 30 4c | 29 3b 0d 44 65 73 63 72 |LL,3L,0L|);.Descr|
|00003200| 69 62 65 20 61 6e 64 20 | 44 65 73 63 72 69 62 65 |ibe and |Describe|
|00003210| 41 72 72 61 79 20 6d 65 | 72 65 6c 79 20 72 65 74 |Array me|rely ret|
|00003220| 75 72 6e 20 61 20 44 65 | 73 63 72 69 70 74 69 6f |urn a De|scriptio|
|00003230| 6e 20 77 69 74 68 20 74 | 68 65 20 66 69 65 6c 64 |n with t|he field|
|00003240| 20 76 61 6c 75 65 73 0d | 74 68 61 74 20 79 6f 75 | values.|that you|
|00003250| 20 73 75 70 70 6c 79 2e | 20 55 73 65 20 74 68 65 | supply.| Use the|
|00003260| 6d 20 74 6f 20 6d 61 6b | 65 20 79 6f 75 72 20 70 |m to mak|e your p|
|00003270| 72 6f 67 72 61 6d 73 20 | 6d 6f 72 65 20 72 65 61 |rograms |more rea|
|00003280| 64 61 62 6c 65 2c 20 61 | 6e 64 20 74 6f 20 65 6e |dable, a|nd to en|
|00003290| 68 61 6e 63 65 0d 74 68 | 65 20 63 6f 6d 70 61 74 |hance.th|e compat|
|000032a0| 69 62 69 6c 69 74 79 20 | 6f 66 20 79 6f 75 72 20 |ibility |of your |
|000032b0| 70 72 6f 67 72 61 6d 73 | 20 77 69 74 68 20 66 75 |programs| with fu|
|000032c0| 74 75 72 65 20 65 6e 68 | 61 6e 63 65 6d 65 6e 74 |ture enh|ancement|
|000032d0| 73 20 74 6f 20 41 73 73 | 69 67 6e 2e 63 2c 20 77 |s to Ass|ign.c, w|
|000032e0| 68 69 63 68 0d 6d 69 67 | 68 74 20 72 65 64 65 66 |hich.mig|ht redef|
|000032f0| 69 6e 65 20 74 68 65 20 | 66 69 65 6c 64 73 20 6f |ine the |fields o|
|00003300| 66 20 74 68 65 20 44 65 | 73 63 72 69 70 74 69 6f |f the De|scriptio|
|00003310| 6e 20 73 74 72 75 63 74 | 75 72 65 2e 20 44 65 73 |n struct|ure. Des|
|00003320| 63 72 69 62 65 41 72 72 | 61 79 28 29 20 61 63 63 |cribeArr|ay() acc|
|00003330| 65 70 74 73 0d 61 20 76 | 61 72 69 61 62 6c 65 20 |epts.a v|ariable |
|00003340| 6e 75 6d 62 65 72 20 6f | 66 20 61 72 67 75 6d 65 |number o|f argume|
|00003350| 6e 74 73 20 73 70 65 63 | 69 66 79 69 6e 67 20 74 |nts spec|ifying t|
|00003360| 68 65 20 61 72 72 61 79 | 20 64 69 6d 65 6e 73 69 |he array| dimensi|
|00003370| 6f 6e 73 2e 20 59 6f 75 | 20 6d 61 79 20 73 75 70 |ons. You| may sup|
|00003380| 70 6c 79 0d 61 6e 79 20 | 6e 75 6d 62 65 72 20 6f |ply.any |number o|
|00003390| 66 20 61 72 72 61 79 20 | 64 69 6d 65 6e 73 69 6f |f array |dimensio|
|000033a0| 6e 73 20 28 75 70 20 74 | 6f 20 41 53 53 49 47 4e |ns (up t|o ASSIGN|
|000033b0| 5f 44 49 4d 53 29 2c 20 | 62 75 74 20 74 68 65 79 |_DIMS), |but they|
|000033c0| 20 4d 55 53 54 20 62 65 | 20 6c 6f 6e 67 2c 20 61 | MUST be| long, a|
|000033d0| 6e 64 0d 74 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |nd.the a|rgument |
|000033e0| 6c 69 73 74 20 4d 55 53 | 54 20 62 65 20 74 65 72 |list MUS|T be ter|
|000033f0| 6d 69 6e 61 74 65 64 20 | 62 79 20 61 20 30 4c 20 |minated |by a 0L |
|00003400| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 68 65 20 6c 69 |followin|g the li|
|00003410| 73 74 20 6f 66 20 64 69 | 6d 65 6e 73 69 6f 6e 73 |st of di|mensions|
|00003420| 2e 0d 41 6e 79 20 61 64 | 64 69 74 69 6f 6e 61 6c |..Any ad|ditional|
|00003430| 20 61 72 67 75 6d 65 6e | 74 73 20 66 6f 6c 6c 6f | argumen|ts follo|
|00003440| 77 69 6e 67 20 74 68 65 | 20 30 4c 20 61 72 65 20 |wing the| 0L are |
|00003450| 69 67 6e 6f 72 65 64 2e | 20 41 20 50 74 72 54 79 |ignored.| A PtrTy|
|00003460| 70 65 20 76 61 72 69 61 | 62 6c 65 20 6d 61 79 20 |pe varia|ble may |
|00003470| 62 65 0d 64 65 73 63 72 | 69 62 65 64 20 62 79 20 |be.descr|ibed by |
|00003480| 44 65 73 63 72 69 62 65 | 41 72 72 61 79 28 29 2c |Describe|Array(),|
|00003490| 20 73 70 65 63 69 66 79 | 69 6e 67 20 74 68 65 20 | specify|ing the |
|000034a0| 64 69 6d 65 6e 73 69 6f | 6e 73 20 6f 66 20 74 68 |dimensio|ns of th|
|000034b0| 65 20 73 74 6f 72 61 67 | 65 20 61 72 65 61 20 74 |e storag|e area t|
|000034c0| 6f 0d 62 65 20 61 6c 6c | 6f 63 61 74 65 64 2c 20 |o.be all|ocated, |
|000034d0| 6f 72 20 6d 61 79 20 62 | 65 20 64 65 73 63 72 69 |or may b|e descri|
|000034e0| 62 65 64 20 62 79 20 44 | 65 73 63 72 69 62 65 28 |bed by D|escribe(|
|000034f0| 29 20 69 6e 20 77 68 69 | 63 68 20 63 61 73 65 20 |) in whi|ch case |
|00003500| 74 68 65 20 64 69 6d 65 | 6e 73 69 6f 6e 73 0d 28 |the dime|nsions.(|
|00003510| 6e 6f 6e 65 20 75 70 20 | 74 6f 20 41 53 53 49 47 |none up |to ASSIG|
|00003520| 4e 5f 44 49 4d 53 29 20 | 77 69 6c 6c 20 62 65 20 |N_DIMS) |will be |
|00003530| 64 65 74 65 72 6d 69 6e | 65 64 20 66 72 6f 6d 20 |determin|ed from |
|00003540| 74 68 65 20 66 69 72 73 | 74 20 67 75 6c 70 20 6f |the firs|t gulp o|
|00003550| 66 20 74 68 65 0d 61 73 | 73 69 67 6e 6d 65 6e 74 |f the.as|signment|
|00003560| 20 66 69 6c 65 2e 20 49 | 6e 20 65 69 74 68 65 72 | file. I|n either|
|00003570| 20 63 61 73 65 2c 20 73 | 74 6f 72 61 67 65 20 66 | case, s|torage f|
|00003580| 6f 72 20 74 68 65 20 50 | 74 72 54 79 70 65 20 76 |or the P|trType v|
|00003590| 61 72 69 61 62 6c 65 20 | 69 73 20 61 6c 6c 6f 63 |ariable |is alloc|
|000035a0| 61 74 65 64 0d 6f 6e 6c | 79 20 77 68 65 6e 20 69 |ated.onl|y when i|
|000035b0| 74 20 69 73 20 65 6e 63 | 6f 75 6e 74 65 72 65 64 |t is enc|ountered|
|000035c0| 20 69 6e 20 74 68 65 20 | 61 73 73 69 67 6e 6d 65 | in the |assignme|
|000035d0| 6e 74 20 66 69 6c 65 2e | 20 54 68 65 20 61 72 72 |nt file.| The arr|
|000035e0| 61 79 20 64 69 6d 65 6e | 73 69 6f 6e 73 20 6f 66 |ay dimen|sions of|
|000035f0| 20 61 0d 50 74 72 54 79 | 70 65 20 76 61 72 69 61 | a.PtrTy|pe varia|
|00003600| 62 6c 65 20 73 70 65 63 | 69 66 69 65 64 20 77 68 |ble spec|ified wh|
|00003610| 65 6e 20 63 61 6c 6c 69 | 6e 67 20 44 65 73 63 72 |en calli|ng Descr|
|00003620| 69 62 65 41 72 72 61 79 | 28 29 20 61 72 65 20 77 |ibeArray|() are w|
|00003630| 69 70 65 64 20 6f 75 74 | 20 69 66 20 79 6f 75 0d |iped out| if you.|
|00003640| 6c 61 74 65 72 20 63 61 | 6c 6c 20 46 72 65 65 50 |later ca|ll FreeP|
|00003650| 74 72 56 61 72 69 61 62 | 6c 65 73 28 29 2c 20 77 |trVariab|les(), w|
|00003660| 69 74 68 20 74 68 65 20 | 73 61 6d 65 20 72 65 73 |ith the |same res|
|00003670| 75 6c 74 20 61 73 20 6a | 75 73 74 20 63 61 6c 6c |ult as j|ust call|
|00003680| 69 6e 67 20 44 65 73 63 | 72 69 62 65 28 29 2e 0d |ing Desc|ribe()..|
|00003690| 0d 54 59 50 45 53 3a 20 | 63 68 61 72 54 79 70 65 |.TYPES: |charType|
|000036a0| 2c 20 75 6e 73 69 67 6e | 65 64 43 68 61 72 54 79 |, unsign|edCharTy|
|000036b0| 70 65 2c 20 73 68 6f 72 | 74 54 79 70 65 2c 20 75 |pe, shor|tType, u|
|000036c0| 6e 73 69 67 6e 65 64 53 | 68 6f 72 74 54 79 70 65 |nsignedS|hortType|
|000036d0| 2c 20 6c 6f 6e 67 54 79 | 70 65 2c 0d 75 6e 73 69 |, longTy|pe,.unsi|
|000036e0| 67 6e 65 64 4c 6f 6e 67 | 54 79 70 65 2c 20 66 6c |gnedLong|Type, fl|
|000036f0| 6f 61 74 54 79 70 65 2c | 20 73 68 6f 72 74 44 6f |oatType,| shortDo|
|00003700| 75 62 6c 65 54 79 70 65 | 2c 20 64 6f 75 62 6c 65 |ubleType|, double|
|00003710| 54 79 70 65 2c 20 63 68 | 61 72 50 74 72 54 79 70 |Type, ch|arPtrTyp|
|00003720| 65 2c 0d 75 6e 73 69 67 | 6e 65 64 43 68 61 72 50 |e,.unsig|nedCharP|
|00003730| 74 72 54 79 70 65 2c 20 | 73 68 6f 72 74 50 74 72 |trType, |shortPtr|
|00003740| 54 79 70 65 2c 20 75 6e | 73 69 67 6e 65 64 53 68 |Type, un|signedSh|
|00003750| 6f 72 74 50 74 72 54 79 | 70 65 2c 20 6c 6f 6e 67 |ortPtrTy|pe, long|
|00003760| 50 74 72 54 79 70 65 2c | 0d 75 6e 73 69 67 6e 65 |PtrType,|.unsigne|
|00003770| 64 4c 6f 6e 67 50 74 72 | 54 79 70 65 2c 20 66 6c |dLongPtr|Type, fl|
|00003780| 6f 61 74 50 74 72 54 79 | 70 65 2c 20 73 68 6f 72 |oatPtrTy|pe, shor|
|00003790| 74 44 6f 75 62 6c 65 50 | 74 72 54 79 70 65 2c 20 |tDoubleP|trType, |
|000037a0| 64 6f 75 62 6c 65 50 74 | 72 54 79 70 65 2c 0d 73 |doublePt|rType,.s|
|000037b0| 74 72 69 6e 67 54 79 70 | 65 2e 0d 0d 44 65 73 63 |tringTyp|e...Desc|
|000037c0| 72 69 70 74 69 6f 6e 20 | 44 65 73 63 72 69 62 65 |ription |Describe|
|000037d0| 46 69 72 73 74 4c 61 73 | 74 28 73 68 6f 72 74 20 |FirstLas|t(short |
|000037e0| 74 79 70 65 2c 76 6f 69 | 64 20 2a 70 74 72 2c 63 |type,voi|d *ptr,c|
|000037f0| 68 61 72 20 2a 6e 61 6d | 65 0d 09 2c 63 6f 6e 73 |har *nam|e..,cons|
|00003800| 74 20 63 68 61 72 20 2a | 63 6f 6d 6d 65 6e 74 2c |t char *|comment,|
|00003810| 6c 6f 6e 67 20 66 69 72 | 73 74 45 6c 65 6d 65 6e |long fir|stElemen|
|00003820| 74 2c 6c 6f 6e 67 20 6c | 61 73 74 45 6c 65 6d 65 |t,long l|astEleme|
|00003830| 6e 74 29 3b 0d 09 66 6c | 6f 61 74 20 2a 61 3b 0d |nt);..fl|oat *a;.|
|00003840| 09 61 3d 76 65 63 74 6f | 72 28 31 2c 31 30 29 3b |.a=vecto|r(1,10);|
|00003850| 09 2f 2a 20 61 20 4e 75 | 6d 65 72 69 63 61 6c 20 |./* a Nu|merical |
|00003860| 52 65 63 69 70 65 73 20 | 69 6e 20 43 20 61 6c 6c |Recipes |in C all|
|00003870| 6f 63 61 74 69 6f 6e 20 | 72 6f 75 74 69 6e 65 20 |ocation |routine |
|00003880| 2a 2f 0d 09 64 5b 69 2b | 2b 5d 3d 44 65 73 63 72 |*/..d[i+|+]=Descr|
|00003890| 69 62 65 46 69 72 73 74 | 4c 61 73 74 28 66 6c 6f |ibeFirst|Last(flo|
|000038a0| 61 74 54 79 70 65 2c 61 | 2c 22 61 22 2c 4e 55 4c |atType,a|,"a",NUL|
|000038b0| 4c 2c 31 4c 2c 31 30 4c | 2c 30 4c 29 3b 0d 54 68 |L,1L,10L|,0L);.Th|
|000038c0| 69 73 20 61 6c 6c 6f 77 | 73 20 79 6f 75 20 74 6f |is allow|s you to|
|000038d0| 20 73 70 65 63 69 66 79 | 20 61 20 31 2d 64 69 6d | specify| a 1-dim|
|000038e0| 65 6e 73 69 6f 6e 61 6c | 20 61 72 72 61 79 20 77 |ensional| array w|
|000038f0| 69 74 68 20 61 20 6e 6f | 6e 73 74 61 6e 64 61 72 |ith a no|nstandar|
|00003900| 64 20 73 75 62 73 63 72 | 69 70 74 0d 72 61 6e 67 |d subscr|ipt.rang|
|00003910| 65 2c 20 65 2e 67 2e 20 | 73 74 61 72 74 69 6e 67 |e, e.g. |starting|
|00003920| 20 77 69 74 68 20 73 75 | 62 73 63 72 69 70 74 20 | with su|bscript |
|00003930| 31 2c 20 61 73 20 69 6e | 20 4e 75 6d 65 72 69 63 |1, as in| Numeric|
|00003940| 61 6c 20 52 65 63 69 70 | 65 73 20 69 6e 20 43 2e |al Recip|es in C.|
|00003950| 20 54 68 65 20 22 70 74 | 72 22 0d 61 72 67 75 6d | The "pt|r".argum|
|00003960| 65 6e 74 20 73 68 6f 75 | 6c 64 20 61 6c 77 61 79 |ent shou|ld alway|
|00003970| 73 20 70 6f 69 6e 74 20 | 74 6f 20 65 6c 65 6d 65 |s point |to eleme|
|00003980| 6e 74 20 7a 65 72 6f 2c | 20 65 76 65 6e 20 69 66 |nt zero,| even if|
|00003990| 20 74 68 61 74 20 65 6c | 65 6d 65 6e 74 20 69 73 | that el|ement is|
|000039a0| 20 6e 6f 74 20 70 61 72 | 74 20 6f 66 0d 74 68 65 | not par|t of.the|
|000039b0| 20 61 72 72 61 79 27 73 | 20 61 6c 6c 6f 63 61 74 | array's| allocat|
|000039c0| 65 64 20 73 74 6f 72 61 | 67 65 2e 20 0d 0d 09 65 |ed stora|ge. ...e|
|000039d0| 72 72 6f 72 3d 55 6e 65 | 71 75 61 6c 44 65 73 63 |rror=Une|qualDesc|
|000039e0| 72 69 62 65 64 56 61 72 | 73 28 64 65 73 63 72 69 |ribedVar|s(descri|
|000039f0| 70 74 69 6f 6e 73 31 2c | 64 65 73 63 72 69 70 74 |ptions1,|descript|
|00003a00| 69 6f 6e 73 32 2c 66 6c | 61 67 73 29 3b 0d 09 65 |ions2,fl|ags);..e|
|00003a10| 72 72 6f 72 3d 55 6e 65 | 71 75 61 6c 44 65 73 63 |rror=Une|qualDesc|
|00003a20| 72 69 62 65 64 56 61 72 | 50 61 69 72 28 64 31 2c |ribedVar|Pair(d1,|
|00003a30| 64 32 2c 66 6c 61 67 73 | 29 3b 0d 54 68 65 73 65 |d2,flags|);.These|
|00003a40| 20 72 6f 75 74 69 6e 65 | 73 20 63 6f 6d 70 61 72 | routine|s compar|
|00003a50| 65 20 74 68 65 20 64 61 | 74 61 20 70 6f 69 6e 74 |e the da|ta point|
|00003a60| 65 64 20 74 6f 20 62 79 | 20 74 68 65 20 74 77 6f |ed to by| the two|
|00003a70| 20 44 65 73 63 72 69 70 | 74 69 6f 6e 20 61 72 72 | Descrip|tion arr|
|00003a80| 61 79 73 20 6f 72 0d 73 | 74 72 75 63 74 73 2e 20 |ays or.s|tructs. |
|00003a90| 54 68 65 79 20 72 65 74 | 75 72 6e 20 30 20 69 66 |They ret|urn 0 if|
|00003aa0| 20 74 68 65 20 44 65 73 | 63 72 69 70 74 69 6f 6e | the Des|cription|
|00003ab0| 73 20 61 72 65 20 6c 65 | 67 61 6c 20 61 6e 64 20 |s are le|gal and |
|00003ac0| 74 68 65 20 64 61 74 61 | 20 61 72 65 0d 65 71 75 |the data| are.equ|
|00003ad0| 61 6c 2c 20 61 6e 64 20 | 61 20 6e 6f 6e 7a 65 72 |al, and |a nonzer|
|00003ae0| 6f 20 65 72 72 6f 72 20 | 63 6f 64 65 20 28 6f 72 |o error |code (or|
|00003af0| 20 50 72 69 6e 74 66 45 | 78 69 74 2c 20 64 65 70 | PrintfE|xit, dep|
|00003b00| 65 6e 64 69 6e 67 20 6f | 6e 20 66 6c 61 67 73 29 |ending o|n flags)|
|00003b10| 20 6f 74 68 65 72 77 69 | 73 65 2e 0d 28 43 6f 6d | otherwi|se..(Com|
|00003b20| 70 61 72 69 73 6f 6e 20 | 6f 66 20 66 6c 6f 61 74 |parison |of float|
|00003b30| 69 6e 67 20 6e 75 6d 62 | 65 72 73 20 61 6c 6c 6f |ing numb|ers allo|
|00003b40| 77 73 20 61 20 74 6f 6c | 65 72 61 6e 63 65 20 6f |ws a tol|erance o|
|00003b50| 66 20 2b 2f 2d 20 6f 6e | 65 20 70 61 72 74 20 69 |f +/- on|e part i|
|00003b60| 6e 20 61 20 6d 69 6c 6c | 69 6f 6e 2c 0d 62 65 63 |n a mill|ion,.bec|
|00003b70| 61 75 73 65 20 63 6f 6e | 76 65 72 74 69 6e 67 20 |ause con|verting |
|00003b80| 74 6f 20 61 6e 64 20 66 | 72 6f 6d 20 64 65 63 69 |to and f|rom deci|
|00003b90| 6d 61 6c 20 6d 61 79 20 | 6c 6f 73 65 20 73 6f 6d |mal may |lose som|
|00003ba0| 65 20 70 72 65 63 69 73 | 69 6f 6e 2c 20 61 6e 64 |e precis|ion, and|
|00003bb0| 20 63 6f 6e 73 69 64 65 | 72 73 0d 61 6c 6c 20 4e | conside|rs.all N|
|00003bc0| 41 4e 73 20 65 71 75 61 | 6c 20 62 65 63 61 75 73 |ANs equa|l becaus|
|00003bd0| 65 20 4e 41 4e 20 69 6e | 64 69 63 65 73 20 28 4e |e NAN in|dices (N|
|00003be0| 41 4e 30 34 20 76 73 20 | 4e 41 4e 46 46 29 20 61 |AN04 vs |NANFF) a|
|00003bf0| 72 65 20 6e 6f 74 20 70 | 72 65 73 65 72 76 65 64 |re not p|reserved|
|00003c00| 20 62 79 20 6d 6f 73 74 | 0d 6f 70 65 72 61 74 69 | by most|.operati|
|00003c10| 6f 6e 73 2e 29 20 54 68 | 69 73 20 6d 61 6b 65 73 |ons.) Th|is makes|
|00003c20| 20 69 74 20 65 61 73 79 | 20 74 6f 20 76 65 72 69 | it easy| to veri|
|00003c30| 66 79 20 77 68 61 74 20 | 77 61 73 20 77 72 69 74 |fy what |was writ|
|00003c40| 74 65 6e 20 74 6f 20 61 | 6e 20 61 73 73 69 67 6e |ten to a|n assign|
|00003c50| 6d 65 6e 74 0d 66 69 6c | 65 2e 20 4a 75 73 74 20 |ment.fil|e. Just |
|00003c60| 63 72 65 61 74 65 20 61 | 20 6e 65 77 20 64 61 74 |create a| new dat|
|00003c70| 61 20 73 74 72 75 63 74 | 75 72 65 20 61 6e 64 20 |a struct|ure and |
|00003c80| 61 20 44 65 73 63 72 69 | 70 74 69 6f 6e 20 61 72 |a Descri|ption ar|
|00003c90| 72 61 79 20 64 65 73 63 | 72 69 62 69 6e 67 20 69 |ray desc|ribing i|
|00003ca0| 74 2c 0d 63 61 6c 6c 20 | 52 65 61 64 41 73 73 69 |t,.call |ReadAssi|
|00003cb0| 67 6e 6d 65 6e 74 46 69 | 6c 65 2c 20 61 6e 64 20 |gnmentFi|le, and |
|00003cc0| 75 73 65 20 55 6e 65 71 | 75 61 6c 44 65 73 63 72 |use Uneq|ualDescr|
|00003cd0| 69 62 65 64 56 61 72 73 | 20 74 6f 20 76 65 72 69 |ibedVars| to veri|
|00003ce0| 66 79 20 74 68 61 74 20 | 79 6f 75 20 72 65 61 64 |fy that |you read|
|00003cf0| 0d 62 61 63 6b 20 65 78 | 61 63 74 6c 79 20 77 68 |.back ex|actly wh|
|00003d00| 61 74 20 79 6f 75 20 77 | 72 6f 74 65 2e 0d 0d 09 |at you w|rote....|
|00003d10| 6e 3d 43 6f 70 79 44 65 | 73 63 72 69 62 65 64 56 |n=CopyDe|scribedV|
|00003d20| 61 72 73 28 64 65 73 63 | 72 69 70 74 69 6f 6e 73 |ars(desc|riptions|
|00003d30| 31 2c 64 65 73 63 72 69 | 70 74 69 6f 6e 73 32 2c |1,descri|ptions2,|
|00003d40| 66 6c 61 67 73 29 3b 0d | 09 6e 3d 43 6f 70 79 41 |flags);.|.n=CopyA|
|00003d50| 44 65 73 63 72 69 62 65 | 64 56 61 72 28 64 31 2c |Describe|dVar(d1,|
|00003d60| 64 32 2c 66 6c 61 67 73 | 29 3b 0d 54 68 65 73 65 |d2,flags|);.These|
|00003d70| 20 72 6f 75 74 69 6e 65 | 73 20 63 6f 70 79 20 74 | routine|s copy t|
|00003d80| 68 65 20 64 61 74 61 20 | 70 6f 69 6e 74 65 64 20 |he data |pointed |
|00003d90| 74 6f 20 62 79 20 74 68 | 65 20 66 69 72 73 74 20 |to by th|e first |
|00003da0| 44 65 73 63 72 69 70 74 | 69 6f 6e 20 61 72 72 61 |Descript|ion arra|
|00003db0| 79 20 6f 72 0d 73 74 72 | 75 63 74 2c 20 6f 76 65 |y or.str|uct, ove|
|00003dc0| 72 77 72 69 74 69 6e 67 | 20 74 68 65 20 64 61 74 |rwriting| the dat|
|00003dd0| 61 20 70 6f 69 6e 74 65 | 64 20 74 6f 20 62 79 20 |a pointe|d to by |
|00003de0| 74 68 65 20 73 65 63 6f | 6e 64 2e 20 54 68 65 79 |the seco|nd. They|
|00003df0| 20 72 65 74 75 72 6e 20 | 30 20 6f 6e 20 73 75 63 | return |0 on suc|
|00003e00| 63 65 73 73 2c 0d 69 2e | 65 2e 20 69 66 20 74 68 |cess,.i.|e. if th|
|00003e10| 65 20 44 65 73 63 72 69 | 70 74 69 6f 6e 73 20 61 |e Descri|ptions a|
|00003e20| 72 65 20 6c 65 67 61 6c | 20 61 6e 64 20 74 68 65 |re legal| and the|
|00003e30| 20 64 61 74 61 20 74 79 | 70 65 73 20 61 6e 64 20 | data ty|pes and |
|00003e40| 6e 61 6d 65 73 20 61 72 | 65 20 63 6f 6e 73 69 73 |names ar|e consis|
|00003e50| 74 65 6e 74 2c 0d 61 6e | 64 20 61 20 6e 6f 6e 7a |tent,.an|d a nonz|
|00003e60| 65 72 6f 20 65 72 72 6f | 72 20 63 6f 64 65 20 28 |ero erro|r code (|
|00003e70| 6f 72 20 50 72 69 6e 74 | 66 45 78 69 74 2c 20 64 |or Print|fExit, d|
|00003e80| 65 70 65 6e 64 69 6e 67 | 20 6f 6e 20 66 6c 61 67 |epending| on flag|
|00003e90| 73 29 20 6f 74 68 65 72 | 77 69 73 65 2e 20 54 68 |s) other|wise. Th|
|00003ea0| 69 73 0d 6d 61 6b 65 73 | 20 69 74 20 65 61 73 69 |is.makes| it easi|
|00003eb0| 65 72 20 74 6f 20 72 65 | 61 64 20 64 61 74 61 20 |er to re|ad data |
|00003ec0| 69 6e 74 6f 20 61 20 74 | 65 6d 70 6f 72 61 72 79 |into a t|emporary|
|00003ed0| 20 61 72 65 61 2c 20 61 | 6e 64 20 74 68 65 6e 2c | area, a|nd then,|
|00003ee0| 20 69 66 20 74 68 65 73 | 65 20 61 72 65 20 74 68 | if thes|e are th|
|00003ef0| 65 0d 64 61 74 61 20 77 | 65 20 77 61 6e 74 2c 20 |e.data w|e want, |
|00003f00| 74 6f 20 74 68 65 6e 20 | 63 6f 70 79 20 74 68 65 |to then |copy the|
|00003f10| 6d 20 69 6e 74 6f 20 74 | 68 65 20 72 65 61 6c 20 |m into t|he real |
|00003f20| 76 61 72 69 61 62 6c 65 | 73 2e 0d 0d 09 6e 3d 49 |variable|s....n=I|
|00003f30| 6e 69 74 69 61 6c 69 7a | 65 44 65 73 63 72 69 62 |nitializ|eDescrib|
|00003f40| 65 64 56 61 72 73 28 64 | 65 73 63 72 69 70 74 69 |edVars(d|escripti|
|00003f50| 6f 6e 73 2c 66 6c 61 67 | 73 29 3b 0d 09 6e 3d 49 |ons,flag|s);..n=I|
|00003f60| 6e 69 74 69 61 6c 69 7a | 65 41 44 65 73 63 72 69 |nitializ|eADescri|
|00003f70| 62 65 64 56 61 72 28 64 | 2c 66 6c 61 67 73 29 3b |bedVar(d|,flags);|
|00003f80| 0d 49 6e 69 74 69 61 6c | 69 7a 65 20 74 68 65 20 |.Initial|ize the |
|00003f90| 64 65 73 63 72 69 62 65 | 64 20 76 61 72 69 61 62 |describe|d variab|
|00003fa0| 6c 65 73 2e 20 41 6c 6c | 20 69 6e 74 65 67 65 72 |les. All| integer|
|00003fb0| 20 76 61 72 69 61 62 6c | 65 73 0d 61 72 65 20 73 | variabl|es.are s|
|00003fc0| 65 74 20 74 6f 20 7a 65 | 72 6f 2c 20 61 6c 6c 20 |et to ze|ro, all |
|00003fd0| 66 6c 6f 61 74 69 6e 67 | 20 76 61 72 69 61 62 6c |floating| variabl|
|00003fe0| 65 73 20 61 72 65 20 73 | 65 74 20 74 6f 20 4e 41 |es are s|et to NA|
|00003ff0| 4e 2c 20 61 6e 64 20 61 | 6c 6c 20 74 68 65 20 73 |N, and a|ll the s|
|00004000| 74 72 69 6e 67 73 20 61 | 72 65 0d 73 65 74 20 74 |trings a|re.set t|
|00004010| 6f 20 70 6f 69 6e 74 20 | 74 6f 20 61 20 70 61 72 |o point |to a par|
|00004020| 74 69 63 75 6c 61 72 20 | 65 6d 70 74 79 20 73 74 |ticular |empty st|
|00004030| 72 69 6e 67 20 22 22 2e | 20 41 6e 79 20 50 74 72 |ring "".| Any Ptr|
|00004040| 54 79 70 65 20 73 63 61 | 6c 61 72 73 20 61 6e 64 |Type sca|lars and|
|00004050| 20 61 72 72 61 79 73 0d | 74 68 61 74 20 68 61 76 | arrays.|that hav|
|00004060| 65 20 61 6c 72 65 61 64 | 79 20 62 65 65 6e 20 61 |e alread|y been a|
|00004070| 6c 6c 6f 63 61 74 65 64 | 20 77 69 6c 6c 20 62 65 |llocated| will be|
|00004080| 20 69 6e 69 74 69 61 6c | 69 7a 65 64 3b 20 75 6e | initial|ized; un|
|00004090| 61 6c 6c 6f 63 61 74 65 | 64 20 50 74 72 54 79 70 |allocate|d PtrTyp|
|000040a0| 65 0d 76 61 72 69 61 62 | 6c 65 73 20 61 72 65 20 |e.variab|les are |
|000040b0| 4e 55 4c 4c 65 64 2e 0d | 0d 09 6e 3d 52 65 61 64 |NULLed..|..n=Read|
|000040c0| 41 73 73 69 67 6e 6d 65 | 6e 74 4c 69 6e 65 28 73 |Assignme|ntLine(s|
|000040d0| 74 72 65 61 6d 2c 64 65 | 73 63 72 69 70 74 69 6f |tream,de|scriptio|
|000040e0| 6e 73 2c 66 6c 61 67 73 | 29 3b 0d 49 6e 74 65 72 |ns,flags|);.Inter|
|000040f0| 70 72 65 74 73 20 6f 6e | 65 20 6c 69 6e 65 20 66 |prets on|e line f|
|00004100| 72 6f 6d 20 74 68 65 20 | 73 74 72 65 61 6d 20 28 |rom the |stream (|
|00004110| 73 70 6c 69 63 69 6e 67 | 20 63 6f 6e 74 69 6e 75 |splicing| continu|
|00004120| 61 74 69 6f 6e 20 6c 69 | 6e 65 73 29 2c 20 61 6e |ation li|nes), an|
|00004130| 64 20 63 6f 6e 74 69 6e | 75 65 73 0d 74 6f 20 72 |d contin|ues.to r|
|00004140| 65 61 64 20 66 75 72 74 | 68 65 72 20 6c 69 6e 65 |ead furt|her line|
|00004150| 73 2c 20 69 66 20 6e 65 | 63 65 73 73 61 72 79 2c |s, if ne|cessary,|
|00004160| 20 74 6f 20 72 65 61 63 | 68 20 74 68 65 20 65 6e | to reac|h the en|
|00004170| 64 20 6f 66 20 61 6e 79 | 20 69 6e 63 6f 6d 70 6c |d of any| incompl|
|00004180| 65 74 65 20 63 6f 6d 6d | 65 6e 74 0d 6f 72 20 61 |ete comm|ent.or a|
|00004190| 73 73 69 67 6e 6d 65 6e | 74 2e 20 52 65 61 64 41 |ssignmen|t. ReadA|
|000041a0| 73 73 69 67 6e 6d 65 6e | 74 42 6c 6f 63 6b 28 29 |ssignmen|tBlock()|
|000041b0| 20 61 6e 64 20 52 65 61 | 64 41 73 73 69 67 6e 6d | and Rea|dAssignm|
|000041c0| 65 6e 74 46 69 6c 65 28 | 29 2c 20 62 65 6c 6f 77 |entFile(|), below|
|000041d0| 2c 20 64 6f 20 61 6c 6c | 0d 74 68 65 69 72 20 72 |, do all|.their r|
|000041e0| 65 61 64 69 6e 67 20 62 | 79 20 72 65 70 65 61 74 |eading b|y repeat|
|000041f0| 65 64 6c 79 20 63 61 6c | 6c 69 6e 67 20 52 65 61 |edly cal|ling Rea|
|00004200| 64 41 73 73 69 67 6e 6d | 65 6e 74 4c 69 6e 65 28 |dAssignm|entLine(|
|00004210| 29 2e 0d 0d 09 62 6c 61 | 6e 6b 3d 41 73 73 69 67 |)....bla|nk=Assig|
|00004220| 6e 6d 65 6e 74 4c 69 6e | 65 57 61 73 42 6c 61 6e |nmentLin|eWasBlan|
|00004230| 6b 28 29 3b 0d 52 65 74 | 75 72 6e 73 20 74 72 75 |k();.Ret|urns tru|
|00004240| 65 20 28 69 2e 65 2e 20 | 31 29 20 75 6e 6c 65 73 |e (i.e. |1) unles|
|00004250| 73 20 74 68 65 20 6d 6f | 73 74 20 72 65 63 65 6e |s the mo|st recen|
|00004260| 74 20 63 61 6c 6c 20 74 | 6f 20 52 65 61 64 41 73 |t call t|o ReadAs|
|00004270| 73 69 67 6e 6d 65 6e 74 | 4c 69 6e 65 28 29 20 72 |signment|Line() r|
|00004280| 65 61 64 0d 73 6f 6d 65 | 20 6e 6f 6e 2d 62 6c 61 |ead.some| non-bla|
|00004290| 6e 6b 20 74 65 78 74 2c | 20 69 6e 20 77 68 69 63 |nk text,| in whic|
|000042a0| 68 20 63 61 73 65 20 69 | 74 20 72 65 74 75 72 6e |h case i|t return|
|000042b0| 73 20 66 61 6c 73 65 20 | 28 69 2e 65 2e 20 30 29 |s false |(i.e. 0)|
|000042c0| 2e 0d 0d 09 6e 3d 52 65 | 61 64 41 73 73 69 67 6e |....n=Re|adAssign|
|000042d0| 6d 65 6e 74 42 6c 6f 63 | 6b 28 73 74 72 65 61 6d |mentBloc|k(stream|
|000042e0| 2c 64 65 73 63 72 69 70 | 74 69 6f 6e 73 2c 66 6c |,descrip|tions,fl|
|000042f0| 61 67 73 29 3b 0d 49 6e | 74 65 72 70 72 65 74 73 |ags);.In|terprets|
|00004300| 20 6c 69 6e 65 73 20 66 | 72 6f 6d 20 74 68 65 20 | lines f|rom the |
|00004310| 73 74 72 65 61 6d 20 75 | 6e 74 69 6c 20 69 74 20 |stream u|ntil it |
|00004320| 72 65 61 64 73 20 61 20 | 62 6c 61 6e 6b 20 6c 69 |reads a |blank li|
|00004330| 6e 65 2e 20 28 42 6c 61 | 6e 6b 20 6c 69 6e 65 73 |ne. (Bla|nk lines|
|00004340| 20 77 69 74 68 69 6e 0d | 61 6e 20 61 73 73 69 67 | within.|an assig|
|00004350| 6e 6d 65 6e 74 20 6f 72 | 20 63 6f 6d 6d 65 6e 74 |nment or| comment|
|00004360| 20 2f 2a 20 2a 2f 20 61 | 72 65 20 69 67 6e 6f 72 | /* */ a|re ignor|
|00004370| 65 64 2e 29 20 49 6d 70 | 6c 65 6d 65 6e 74 65 64 |ed.) Imp|lemented|
|00004380| 20 62 79 20 72 65 70 65 | 61 74 65 64 6c 79 20 63 | by repe|atedly c|
|00004390| 61 6c 6c 69 6e 67 0d 52 | 65 61 64 41 73 73 69 67 |alling.R|eadAssig|
|000043a0| 6e 6d 65 6e 74 4c 69 6e | 65 28 29 20 75 6e 74 69 |nmentLin|e() unti|
|000043b0| 6c 20 41 73 73 69 67 6e | 6d 65 6e 74 4c 69 6e 65 |l Assign|mentLine|
|000043c0| 57 61 73 42 6c 61 6e 6b | 28 29 20 69 73 20 74 72 |WasBlank|() is tr|
|000043d0| 75 65 2e 20 0d 0d 09 6e | 3d 52 65 61 64 41 73 73 |ue. ...n|=ReadAss|
|000043e0| 69 67 6e 6d 65 6e 74 46 | 69 6c 65 28 66 69 6c 65 |ignmentF|ile(file|
|000043f0| 6e 61 6d 65 2c 64 65 73 | 63 72 69 70 74 69 6f 6e |name,des|cription|
|00004400| 73 2c 66 6c 61 67 73 29 | 3b 0d 49 6e 74 65 72 70 |s,flags)|;.Interp|
|00004410| 72 65 74 20 61 20 77 68 | 6f 6c 65 20 66 69 6c 65 |ret a wh|ole file|
|00004420| 2e 20 49 6d 70 6c 65 6d | 65 6e 74 65 64 20 62 79 |. Implem|ented by|
|00004430| 20 72 65 70 65 61 74 65 | 64 6c 79 20 63 61 6c 6c | repeate|dly call|
|00004440| 69 6e 67 20 52 65 61 64 | 41 73 73 69 67 6e 6d 65 |ing Read|Assignme|
|00004450| 6e 74 4c 69 6e 65 28 29 | 2e 0d 0d 09 46 72 65 65 |ntLine()|....Free|
|00004460| 44 65 73 63 72 69 62 65 | 64 50 74 72 56 61 72 73 |Describe|dPtrVars|
|00004470| 28 64 65 73 63 72 69 70 | 74 69 6f 6e 73 2c 66 6c |(descrip|tions,fl|
|00004480| 61 67 73 29 3b 0d 46 72 | 65 65 73 20 61 6e 79 20 |ags);.Fr|ees any |
|00004490| 61 6c 6c 6f 63 61 74 65 | 64 20 73 74 6f 72 61 67 |allocate|d storag|
|000044a0| 65 20 28 61 6e 64 20 77 | 69 70 65 73 20 6f 75 74 |e (and w|ipes out|
|000044b0| 20 74 68 65 20 61 72 72 | 61 79 20 64 69 6d 65 6e | the arr|ay dimen|
|000044c0| 73 69 6f 6e 73 29 20 66 | 6f 72 20 61 6e 79 0d 64 |sions) f|or any.d|
|000044d0| 65 73 63 72 69 62 65 64 | 20 50 74 72 54 79 70 65 |escribed| PtrType|
|000044e0| 20 76 61 72 69 61 62 6c | 65 73 3b 20 74 68 65 79 | variabl|es; they|
|000044f0| 20 77 69 6c 6c 20 62 65 | 20 61 70 70 72 6f 70 72 | will be| appropr|
|00004500| 69 61 74 65 6c 79 20 64 | 69 6d 65 6e 73 69 6f 6e |iately d|imension|
|00004510| 65 64 20 61 6e 64 0d 61 | 6c 6c 6f 63 61 74 65 64 |ed and.a|llocated|
|00004520| 20 77 68 65 6e 20 74 68 | 65 79 20 61 72 65 20 6e | when th|ey are n|
|00004530| 65 78 74 20 72 65 61 64 | 20 66 72 6f 6d 20 61 6e |ext read| from an|
|00004540| 20 61 73 73 69 67 6e 6d | 65 6e 74 20 66 69 6c 65 | assignm|ent file|
|00004550| 2e 20 54 68 69 73 20 61 | 6c 6c 6f 77 73 20 72 65 |. This a|llows re|
|00004560| 61 64 69 6e 67 0d 6f 66 | 20 61 73 73 69 67 6e 6d |ading.of| assignm|
|00004570| 65 6e 74 20 66 69 6c 65 | 73 20 69 6e 20 77 68 69 |ent file|s in whi|
|00004580| 63 68 20 61 72 72 61 79 | 20 64 69 6d 65 6e 73 69 |ch array| dimensi|
|00004590| 6f 6e 73 20 6d 61 79 20 | 63 68 61 6e 67 65 20 66 |ons may |change f|
|000045a0| 72 6f 6d 20 67 75 6c 70 | 20 74 6f 20 67 75 6c 70 |rom gulp| to gulp|
|000045b0| 2e 0d 0d 09 46 72 65 65 | 44 65 73 63 72 69 62 65 |....Free|Describe|
|000045c0| 64 56 61 72 73 28 64 65 | 73 63 72 69 70 74 69 6f |dVars(de|scriptio|
|000045d0| 6e 73 2c 66 6c 61 67 73 | 29 3b 0d 46 72 65 65 73 |ns,flags|);.Frees|
|000045e0| 20 61 6e 79 20 61 6c 6c | 6f 63 61 74 65 64 20 73 | any all|ocated s|
|000045f0| 74 6f 72 61 67 65 20 28 | 61 6e 64 20 77 69 70 65 |torage (|and wipe|
|00004600| 73 20 6f 75 74 20 74 68 | 65 20 61 72 72 61 79 20 |s out th|e array |
|00004610| 64 69 6d 65 6e 73 69 6f | 6e 73 29 20 66 6f 72 20 |dimensio|ns) for |
|00004620| 61 6e 79 0d 64 65 73 63 | 72 69 62 65 64 20 50 74 |any.desc|ribed Pt|
|00004630| 72 54 79 70 65 20 61 6e | 64 20 73 74 72 69 6e 67 |rType an|d string|
|00004640| 54 79 70 65 20 76 61 72 | 69 61 62 6c 65 73 2e 0d |Type var|iables..|
|00004650| 0d 09 46 72 65 65 41 44 | 65 73 63 72 69 62 65 64 |..FreeAD|escribed|
|00004660| 56 61 72 28 64 65 73 63 | 72 69 70 74 69 6f 6e 2c |Var(desc|ription,|
|00004670| 66 6c 61 67 73 29 3b 0d | 46 72 65 65 73 20 61 6e |flags);.|Frees an|
|00004680| 79 20 61 6c 6c 6f 63 61 | 74 65 64 20 73 74 6f 72 |y alloca|ted stor|
|00004690| 61 67 65 20 28 61 6e 64 | 20 77 69 70 65 73 20 6f |age (and| wipes o|
|000046a0| 75 74 20 74 68 65 20 61 | 72 72 61 79 20 64 69 6d |ut the a|rray dim|
|000046b0| 65 6e 73 69 6f 6e 73 29 | 20 66 6f 72 20 61 20 64 |ensions)| for a d|
|000046c0| 65 73 63 72 69 62 65 64 | 0d 76 61 72 69 61 62 6c |escribed|.variabl|
|000046d0| 65 2e 20 54 68 69 73 20 | 6f 6e 6c 79 20 61 66 66 |e. This |only aff|
|000046e0| 65 63 74 73 20 50 74 72 | 54 79 70 65 20 61 6e 64 |ects Ptr|Type and|
|000046f0| 20 73 74 72 69 6e 67 54 | 79 70 65 20 76 61 72 69 | stringT|ype vari|
|00004700| 61 62 6c 65 73 2e 0d 0d | 09 4b 65 65 70 44 65 73 |ables...|.KeepDes|
|00004710| 63 72 69 62 65 64 56 61 | 72 73 28 64 65 73 63 72 |cribedVa|rs(descr|
|00004720| 69 70 74 69 6f 6e 73 2c | 66 6c 61 67 73 29 3b 0d |iptions,|flags);.|
|00004730| 50 72 65 76 65 6e 74 73 | 20 74 68 65 20 66 72 65 |Prevents| the fre|
|00004740| 65 69 6e 67 20 6f 66 20 | 61 6c 6c 20 74 68 65 20 |eing of |all the |
|00004750| 61 6c 6c 6f 63 61 74 65 | 64 20 73 74 6f 72 61 67 |allocate|d storag|
|00004760| 65 20 66 6f 72 20 61 6c | 6c 20 74 68 65 20 64 65 |e for al|l the de|
|00004770| 73 63 72 69 62 65 64 20 | 50 74 72 54 79 70 65 0d |scribed |PtrType.|
|00004780| 61 6e 64 20 73 74 72 69 | 6e 67 54 79 70 65 20 76 |and stri|ngType v|
|00004790| 61 72 69 61 62 6c 65 73 | 2e 20 43 61 6c 6c 20 74 |ariables|. Call t|
|000047a0| 68 69 73 20 77 68 65 6e | 20 79 6f 75 20 77 61 6e |his when| you wan|
|000047b0| 74 20 74 6f 20 63 6f 70 | 79 20 74 68 65 20 70 6f |t to cop|y the po|
|000047c0| 69 6e 74 65 72 20 65 6c | 73 65 77 68 65 72 65 0d |inter el|sewhere.|
|000047d0| 61 6e 64 20 79 6f 75 20 | 64 6f 6e 27 74 20 77 61 |and you |don't wa|
|000047e0| 6e 74 20 41 73 73 69 67 | 6e 20 74 6f 20 64 69 73 |nt Assig|n to dis|
|000047f0| 70 6f 73 65 20 6f 66 20 | 74 68 65 20 73 74 6f 72 |pose of |the stor|
|00004800| 61 67 65 20 70 6f 69 6e | 74 65 64 20 74 6f 2e 20 |age poin|ted to. |
|00004810| 28 54 68 69 73 20 72 6f | 75 74 69 6e 65 0d 73 69 |(This ro|utine.si|
|00004820| 6d 70 6c 79 20 63 6c 65 | 61 72 73 20 61 6c 6c 20 |mply cle|ars all |
|00004830| 74 68 65 20 22 6d 61 6c | 6c 6f 63 65 64 22 20 66 |the "mal|loced" f|
|00004840| 69 65 6c 64 73 20 69 6e | 20 74 68 65 20 64 65 73 |ields in| the des|
|00004850| 63 72 69 70 74 69 6f 6e | 73 2e 29 0d 0d 09 69 3d |cription|s.)...i=|
|00004860| 46 69 6e 64 44 65 73 63 | 72 69 70 74 69 6f 6e 28 |FindDesc|ription(|
|00004870| 64 2c 70 74 72 2c 66 6c | 61 67 73 29 3b 0d 46 69 |d,ptr,fl|ags);.Fi|
|00004880| 6e 64 73 20 79 6f 75 72 | 20 43 20 76 61 72 69 61 |nds your| C varia|
|00004890| 62 6c 65 27 73 20 64 65 | 73 63 72 69 70 74 69 6f |ble's de|scriptio|
|000048a0| 6e 20 69 6e 20 74 68 65 | 20 73 75 70 70 6c 69 65 |n in the| supplie|
|000048b0| 64 20 61 72 72 61 79 2e | 20 52 65 74 75 72 6e 73 |d array.| Returns|
|000048c0| 20 74 68 65 20 73 75 62 | 73 63 72 69 70 74 0d 28 | the sub|script.(|
|000048d0| b3 30 29 20 6f 66 20 74 | 68 65 20 6d 61 74 63 68 |.0) of t|he match|
|000048e0| 69 6e 67 20 44 65 73 63 | 72 69 70 74 69 6f 6e 2c |ing Desc|ription,|
|000048f0| 20 6f 72 2c 20 69 66 20 | 74 68 65 20 73 65 61 72 | or, if |the sear|
|00004900| 63 68 20 66 61 69 6c 73 | 2c 20 74 68 65 6e 20 65 |ch fails|, then e|
|00004910| 69 74 68 65 72 20 50 72 | 69 6e 74 66 45 78 69 74 |ither Pr|intfExit|
|00004920| 73 0d 77 69 74 68 20 61 | 6e 20 65 72 72 6f 72 20 |s.with a|n error |
|00004930| 6f 72 20 72 65 74 75 72 | 6e 73 20 61 20 6e 65 67 |or retur|ns a neg|
|00004940| 61 74 69 76 65 20 65 72 | 72 6f 72 20 63 6f 64 65 |ative er|ror code|
|00004950| 2c 20 61 73 20 64 65 74 | 65 72 6d 69 6e 65 64 20 |, as det|ermined |
|00004960| 62 79 20 74 68 65 20 73 | 65 74 74 69 6e 67 20 6f |by the s|etting o|
|00004970| 66 0d 74 68 65 20 61 73 | 73 69 67 6e 4e 6f 50 72 |f.the as|signNoPr|
|00004980| 69 6e 74 66 45 78 69 74 | 20 62 69 74 20 69 6e 20 |intfExit| bit in |
|00004990| 66 6c 61 67 73 2e 20 59 | 6f 75 72 20 43 20 76 61 |flags. Y|our C va|
|000049a0| 72 69 61 62 6c 65 27 73 | 20 64 69 6d 65 6e 73 69 |riable's| dimensi|
|000049b0| 6f 6e 73 20 61 72 65 20 | 69 6e 20 74 68 65 0d 64 |ons are |in the.d|
|000049c0| 5b 69 5d 2e 64 69 6d 5b | 5d 20 66 69 65 6c 64 2c |[i].dim[|] field,|
|000049d0| 20 77 68 69 63 68 20 69 | 73 20 64 69 6d 65 6e 73 | which i|s dimens|
|000049e0| 69 6f 6e 65 64 20 41 53 | 53 49 47 4e 5f 44 49 4d |ioned AS|SIGN_DIM|
|000049f0| 53 2e 0d 0d 09 64 69 6d | 3d 46 69 6e 64 44 65 73 |S....dim|=FindDes|
|00004a00| 63 72 69 62 65 64 44 69 | 6d 28 64 2c 70 74 72 2c |cribedDi|m(d,ptr,|
|00004a10| 6e 2c 66 6c 61 67 73 29 | 3b 0d 43 61 6c 6c 73 20 |n,flags)|;.Calls |
|00004a20| 46 69 6e 64 44 65 73 63 | 72 69 70 74 69 6f 6e 20 |FindDesc|ription |
|00004a30| 74 6f 20 66 69 6e 64 20 | 79 6f 75 72 20 43 20 76 |to find |your C v|
|00004a40| 61 72 69 61 62 6c 65 27 | 73 20 64 65 73 63 72 69 |ariable'|s descri|
|00004a50| 70 74 69 6f 6e 20 61 6e | 64 20 72 65 74 75 72 6e |ption an|d return|
|00004a60| 73 20 74 68 65 0d 73 69 | 7a 65 20 6f 66 20 79 6f |s the.si|ze of yo|
|00004a70| 75 72 20 76 61 72 69 61 | 62 6c 65 27 73 20 6e 2d |ur varia|ble's n-|
|00004a80| 74 68 20 64 69 6d 65 6e | 73 69 6f 6e 2e 20 28 41 |th dimen|sion. (A|
|00004a90| 6c 6c 20 64 69 6d 65 6e | 73 69 6f 6e 73 20 61 66 |ll dimen|sions af|
|00004aa0| 74 65 72 20 74 68 65 20 | 66 69 72 73 74 0d 41 53 |ter the |first.AS|
|00004ab0| 53 49 47 4e 5f 44 49 4d | 53 20 72 65 74 75 72 6e |SIGN_DIM|S return|
|00004ac0| 20 7a 65 72 6f 2e 29 20 | 48 61 6e 64 6c 69 6e 67 | zero.) |Handling|
|00004ad0| 20 6f 66 20 73 65 61 72 | 63 68 20 66 61 69 6c 75 | of sear|ch failu|
|00004ae0| 72 65 20 61 73 20 69 6e | 20 46 69 6e 64 44 65 73 |re as in| FindDes|
|00004af0| 63 72 69 70 74 69 6f 6e | 28 29 2e 0d 0d 09 6e 3d |cription|()....n=|
|00004b00| 50 72 69 6e 74 41 6e 41 | 73 73 69 67 6e 6d 65 6e |PrintAnA|ssignmen|
|00004b10| 74 28 73 74 72 65 61 6d | 2c 64 2c 66 6c 61 67 73 |t(stream|,d,flags|
|00004b20| 29 3b 0d 50 72 69 6e 74 | 73 20 6f 75 74 20 74 68 |);.Print|s out th|
|00004b30| 65 20 6e 61 6d 65 20 61 | 6e 64 20 76 61 6c 75 65 |e name a|nd value|
|00004b40| 20 6f 66 20 74 68 65 20 | 64 65 73 63 72 69 62 65 | of the |describe|
|00004b50| 64 20 76 61 72 69 61 62 | 6c 65 20 61 73 20 61 6e |d variab|le as an|
|00004b60| 20 61 73 73 69 67 6e 6d | 65 6e 74 0d 73 74 61 74 | assignm|ent.stat|
|00004b70| 65 6d 65 6e 74 20 22 69 | 3d 32 3b 22 20 73 75 69 |ement "i|=2;" sui|
|00004b80| 74 61 62 6c 65 20 66 6f | 72 20 72 65 61 64 69 6e |table fo|r readin|
|00004b90| 67 20 62 79 20 52 65 61 | 64 41 73 73 69 67 6e 6d |g by Rea|dAssignm|
|00004ba0| 65 6e 74 4c 69 6e 65 2e | 0d 0d 09 6e 3d 50 72 69 |entLine.|...n=Pri|
|00004bb0| 6e 74 41 73 73 69 67 6e | 6d 65 6e 74 73 28 73 74 |ntAssign|ments(st|
|00004bc0| 72 65 61 6d 2c 64 65 73 | 63 72 69 70 74 69 6f 6e |ream,des|cription|
|00004bd0| 73 2c 66 6c 61 67 73 29 | 3b 0d 43 61 6c 6c 73 20 |s,flags)|;.Calls |
|00004be0| 50 72 69 6e 74 41 6e 41 | 73 73 69 67 6e 6d 65 6e |PrintAnA|ssignmen|
|00004bf0| 74 20 61 6e 64 20 66 70 | 72 69 6e 74 66 28 73 74 |t and fp|rintf(st|
|00004c00| 72 65 61 6d 2c 22 5c 6e | 22 29 3b 20 66 6f 72 20 |ream,"\n|"); for |
|00004c10| 65 61 63 68 20 64 65 73 | 63 72 69 62 65 64 20 76 |each des|cribed v|
|00004c20| 61 72 69 61 62 6c 65 2e | 0d 0d 09 6e 3d 50 72 69 |ariable.|...n=Pri|
|00004c30| 6e 74 41 73 73 69 67 6e | 6d 65 6e 74 73 54 6f 46 |ntAssign|mentsToF|
|00004c40| 69 6c 65 28 66 69 6c 65 | 6e 61 6d 65 2c 64 65 73 |ile(file|name,des|
|00004c50| 63 72 69 70 74 69 6f 6e | 73 2c 66 6c 61 67 73 29 |cription|s,flags)|
|00004c60| 3b 0d 4f 70 65 6e 73 20 | 74 68 65 20 66 69 6c 65 |;.Opens |the file|
|00004c70| 2c 20 63 61 6c 6c 73 20 | 50 72 69 6e 74 41 73 73 |, calls |PrintAss|
|00004c80| 69 67 6e 6d 65 6e 74 73 | 2c 20 61 6e 64 20 63 6c |ignments|, and cl|
|00004c90| 6f 73 65 73 20 74 68 65 | 20 66 69 6c 65 2e 20 49 |oses the| file. I|
|00004ca0| 66 20 61 20 66 69 6c 65 | 20 6f 66 20 74 68 61 74 |f a file| of that|
|00004cb0| 20 0d 6e 61 6d 65 20 61 | 6c 72 65 61 64 79 20 65 | .name a|lready e|
|00004cc0| 78 69 73 74 73 20 69 74 | 20 61 70 70 65 6e 64 73 |xists it| appends|
|00004cd0| 20 74 6f 20 74 68 65 20 | 65 78 69 73 74 69 6e 67 | to the |existing|
|00004ce0| 20 66 69 6c 65 2e 0d 0d | 09 6e 3d 52 65 61 64 4c | file...|.n=ReadL|
|00004cf0| 75 6d 69 6e 61 6e 63 65 | 52 65 63 6f 72 64 28 66 |uminance|Record(f|
|00004d00| 69 6c 65 6e 61 6d 65 2c | 4c 50 2c 66 6c 61 67 73 |ilename,|LP,flags|
|00004d10| 29 0d 54 68 69 73 20 75 | 73 65 73 20 52 65 61 64 |).This u|ses Read|
|00004d20| 41 73 73 69 67 6e 6d 65 | 6e 74 46 69 6c 65 28 29 |Assignme|ntFile()|
|00004d30| 20 74 6f 20 69 6e 74 65 | 72 70 72 65 74 20 61 20 | to inte|rpret a |
|00004d40| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 3f |Luminanc|eRecord?|
|00004d50| 2e 68 20 66 69 6c 65 2e | 20 54 68 69 73 0d 72 6f |.h file.| This.ro|
|00004d60| 75 74 69 6e 65 20 69 73 | 20 69 6e 20 52 65 61 64 |utine is| in Read|
|00004d70| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 2e |Luminanc|eRecord.|
|00004d80| 63 2e 0d 0d 49 6e 20 61 | 6c 6c 20 63 61 73 65 73 |c...In a|ll cases|
|00004d90| 20 74 68 65 20 72 65 74 | 75 72 6e 65 64 20 76 61 | the ret|urned va|
|00004da0| 6c 75 65 2c 20 6e 2c 20 | 69 73 20 65 69 74 68 65 |lue, n, |is eithe|
|00004db0| 72 20 70 6f 73 69 74 69 | 76 65 20 28 3e 3d 30 29 |r positi|ve (>=0)|
|00004dc0| 2c 20 69 6e 64 69 63 61 | 74 69 6e 67 20 74 68 65 |, indica|ting the|
|00004dd0| 0d 6e 75 6d 62 65 72 20 | 6f 66 20 64 61 74 61 20 |.number |of data |
|00004de0| 74 68 61 74 20 77 65 72 | 65 20 66 75 6c 6c 79 20 |that wer|e fully |
|00004df0| 70 72 6f 63 65 73 73 65 | 64 2c 20 6f 72 20 6e 65 |processe|d, or ne|
|00004e00| 67 61 74 69 76 65 2c 20 | 69 6e 64 69 63 61 74 69 |gative, |indicati|
|00004e10| 6e 67 20 61 6e 20 65 72 | 72 6f 72 20 63 6f 64 65 |ng an er|ror code|
|00004e20| 0d 64 65 66 69 6e 65 64 | 20 69 6e 20 56 69 64 65 |.defined| in Vide|
|00004e30| 6f 54 6f 6f 6c 62 6f 78 | 2e 68 2e 20 45 61 63 68 |oToolbox|.h. Each|
|00004e40| 20 61 72 72 61 79 20 65 | 6c 65 6d 65 6e 74 2c 20 | array e|lement, |
|00004e50| 73 63 61 6c 61 72 2c 20 | 6f 72 20 73 74 72 69 6e |scalar, |or strin|
|00004e60| 67 20 69 73 20 63 6f 6e | 73 69 64 65 72 65 64 20 |g is con|sidered |
|00004e70| 61 0d 64 61 74 75 6d 2e | 20 41 6e 79 20 61 73 73 |a.datum.| Any ass|
|00004e80| 69 67 6e 6d 65 6e 74 73 | 20 74 68 61 74 20 72 65 |ignments| that re|
|00004e90| 66 65 72 72 65 64 20 74 | 6f 20 6f 75 74 2d 6f 66 |ferred t|o out-of|
|00004ea0| 2d 72 61 6e 67 65 20 61 | 72 72 61 79 20 65 6c 65 |-range a|rray ele|
|00004eb0| 6d 65 6e 74 73 20 6f 72 | 20 75 6e 6b 6e 6f 77 6e |ments or| unknown|
|00004ec0| 0d 76 61 72 69 61 62 6c | 65 73 20 61 72 65 20 73 |.variabl|es are s|
|00004ed0| 6b 69 70 70 65 64 20 61 | 6e 64 20 61 72 65 20 6e |kipped a|nd are n|
|00004ee0| 6f 74 20 63 6f 75 6e 74 | 65 64 2e 0d 0d 54 68 65 |ot count|ed...The|
|00004ef0| 20 66 69 72 73 74 20 61 | 72 67 75 6d 65 6e 74 20 | first a|rgument |
|00004f00| 69 73 20 65 69 74 68 65 | 72 20 61 20 66 69 6c 65 |is eithe|r a file|
|00004f10| 6e 61 6d 65 20 28 63 20 | 73 74 72 69 6e 67 29 20 |name (c |string) |
|00004f20| 6f 72 20 61 20 73 74 72 | 65 61 6d 20 28 46 49 4c |or a str|eam (FIL|
|00004f30| 45 20 2a 29 0d 72 65 74 | 75 72 6e 65 64 20 62 79 |E *).ret|urned by|
|00004f40| 20 66 6f 70 65 6e 28 29 | 2e 20 4f 70 65 6e 20 74 | fopen()|. Open t|
|00004f50| 68 65 20 66 69 6c 65 20 | 69 6e 20 74 65 78 74 2c |he file |in text,|
|00004f60| 20 6e 6f 74 20 62 69 6e | 61 72 79 2c 20 6d 6f 64 | not bin|ary, mod|
|00004f70| 65 2c 20 73 6f 20 74 68 | 61 74 0d 27 5c 72 27 20 |e, so th|at.'\r' |
|00004f80| 61 6e 64 20 27 5c 6e 27 | 20 63 68 61 72 61 63 74 |and '\n'| charact|
|00004f90| 65 72 73 20 77 69 6c 6c | 20 62 65 20 74 72 61 6e |ers will| be tran|
|00004fa0| 73 6c 61 74 65 64 20 70 | 72 6f 70 65 72 6c 79 2e |slated p|roperly.|
|00004fb0| 0d 0d 54 68 65 20 73 65 | 63 6f 6e 64 20 61 72 67 |..The se|cond arg|
|00004fc0| 75 6d 65 6e 74 2c 20 22 | 64 65 73 63 72 69 70 74 |ument, "|descript|
|00004fd0| 69 6f 6e 73 22 2c 20 69 | 73 20 61 6e 20 61 72 72 |ions", i|s an arr|
|00004fe0| 61 79 20 6f 66 20 44 65 | 73 63 72 69 70 74 69 6f |ay of De|scriptio|
|00004ff0| 6e 73 20 6f 66 0d 79 6f | 75 72 20 76 61 72 69 61 |ns of.yo|ur varia|
|00005000| 62 6c 65 73 2e 20 54 68 | 65 20 6e 75 6d 62 65 72 |bles. Th|e number|
|00005010| 20 6f 66 20 61 72 72 61 | 79 20 65 6c 65 6d 65 6e | of arra|y elemen|
|00005020| 74 73 20 69 73 20 6e 6f | 74 20 67 69 76 65 6e 2e |ts is no|t given.|
|00005030| 20 49 6e 73 74 65 61 64 | 20 79 6f 75 20 6d 61 72 | Instead| you mar|
|00005040| 6b 20 74 68 65 0d 65 6e | 64 20 62 79 20 7a 65 72 |k the.en|d by zer|
|00005050| 6f 69 6e 67 20 74 68 65 | 20 22 74 79 70 65 22 20 |oing the| "type" |
|00005060| 66 69 65 6c 64 20 6f 66 | 20 74 68 65 20 6c 61 73 |field of| the las|
|00005070| 74 20 44 65 73 63 72 69 | 70 74 69 6f 6e 2e 20 54 |t Descri|ption. T|
|00005080| 68 65 20 22 44 65 73 63 | 72 69 70 74 69 6f 6e 22 |he "Desc|ription"|
|00005090| 20 64 61 74 61 0d 73 74 | 72 75 63 74 75 72 65 20 | data.st|ructure |
|000050a0| 69 73 20 64 65 66 69 6e | 65 64 20 69 6e 20 56 69 |is defin|ed in Vi|
|000050b0| 64 65 6f 54 6f 6f 6c 62 | 6f 78 2e 68 2e 0d 0d 54 |deoToolb|ox.h...T|
|000050c0| 68 65 20 74 68 69 72 64 | 20 61 72 67 75 6d 65 6e |he third| argumen|
|000050d0| 74 2c 20 22 66 6c 61 67 | 73 22 2c 20 61 6c 6c 6f |t, "flag|s", allo|
|000050e0| 77 73 20 79 6f 75 20 74 | 6f 20 73 70 65 63 69 66 |ws you t|o specif|
|000050f0| 79 20 76 61 72 69 6f 75 | 73 20 72 75 6e 74 69 6d |y variou|s runtim|
|00005100| 65 20 6f 70 74 69 6f 6e | 73 2e 20 45 61 63 68 0d |e option|s. Each.|
|00005110| 6f 70 74 69 6f 6e 20 69 | 73 20 63 6f 6e 74 72 6f |option i|s contro|
|00005120| 6c 6c 65 64 20 62 79 20 | 61 20 64 69 66 66 65 72 |lled by |a differ|
|00005130| 65 6e 74 20 62 69 74 3b | 20 66 6c 61 67 73 20 69 |ent bit;| flags i|
|00005140| 73 20 74 68 65 20 73 75 | 6d 20 6f 66 20 74 68 65 |s the su|m of the|
|00005150| 20 64 65 73 69 72 65 64 | 0d 6f 70 74 69 6f 6e 73 | desired|.options|
|00005160| 2e 20 4d 6f 73 74 20 75 | 73 65 72 73 20 77 69 6c |. Most u|sers wil|
|00005170| 6c 20 77 61 6e 74 20 74 | 68 65 20 64 65 66 61 75 |l want t|he defau|
|00005180| 6c 74 20 62 65 68 61 76 | 69 6f 72 2c 20 69 2e 65 |lt behav|ior, i.e|
|00005190| 2e 20 66 6c 61 67 73 3d | 3d 30 2e 20 54 68 65 20 |. flags=|=0. The |
|000051a0| 64 65 66 61 75 6c 74 0d | 62 65 68 61 76 69 6f 72 |default.|behavior|
|000051b0| 20 6f 66 20 50 72 69 6e | 74 41 6e 41 73 73 69 67 | of Prin|tAnAssig|
|000051c0| 6e 6d 65 6e 74 20 69 73 | 20 74 6f 20 6e 65 76 65 |nment is| to neve|
|000051d0| 72 20 68 65 78 2d 65 6e | 63 6f 64 65 20 66 6c 6f |r hex-en|code flo|
|000051e0| 61 74 73 20 28 66 6c 6f | 61 74 20 61 6e 64 20 64 |ats (flo|at and d|
|000051f0| 6f 75 62 6c 65 29 0d 61 | 6e 64 20 74 6f 20 6f 6e |ouble).a|nd to on|
|00005200| 6c 79 20 68 65 78 20 65 | 6e 63 6f 64 65 20 69 6e |ly hex e|ncode in|
|00005210| 74 65 67 65 72 73 20 28 | 69 2e 65 2e 20 63 68 61 |tegers (|i.e. cha|
|00005220| 72 2c 20 73 68 6f 72 74 | 2c 20 61 6e 64 20 6c 6f |r, short|, and lo|
|00005230| 6e 67 2c 20 73 69 67 6e | 65 64 20 6f 72 20 75 6e |ng, sign|ed or un|
|00005240| 73 69 67 6e 65 64 29 0d | 77 68 65 6e 20 74 68 69 |signed).|when thi|
|00005250| 73 20 77 6f 75 6c 64 20 | 72 65 64 75 63 65 20 74 |s would |reduce t|
|00005260| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |he numbe|r of lin|
|00005270| 65 73 20 69 6e 20 74 68 | 65 20 61 73 73 69 67 6e |es in th|e assign|
|00005280| 6d 65 6e 74 20 66 69 6c | 65 20 28 69 2e 65 2e 20 |ment fil|e (i.e. |
|00005290| 77 68 65 6e 0d 74 68 65 | 20 6c 61 73 74 20 64 69 |when.the| last di|
|000052a0| 6d 65 6e 73 69 6f 6e 20 | 65 78 63 65 65 64 73 20 |mension |exceeds |
|000052b0| 74 79 70 65 53 69 7a 65 | 2b 32 29 2e 0d 0d 46 4c |typeSize|+2)...FL|
|000052c0| 41 47 53 0d 0d 22 61 73 | 73 69 67 6e 4e 6f 50 72 |AGS.."as|signNoPr|
|000052d0| 69 6e 74 66 45 78 69 74 | 22 20 69 73 20 61 20 66 |intfExit|" is a f|
|000052e0| 6c 61 67 20 74 68 61 74 | 20 61 73 6b 73 20 61 6c |lag that| asks al|
|000052f0| 6c 20 74 68 65 20 72 6f | 75 74 69 6e 65 73 20 74 |l the ro|utines t|
|00005300| 6f 20 72 65 74 75 72 6e | 20 61 6e 20 65 72 72 6f |o return| an erro|
|00005310| 72 0d 63 6f 64 65 20 69 | 66 20 74 68 65 79 20 63 |r.code i|f they c|
|00005320| 61 6e 6e 6f 74 20 73 61 | 74 69 73 66 79 20 74 68 |annot sa|tisfy th|
|00005330| 65 20 72 65 71 75 65 73 | 74 2c 20 6f 74 68 65 72 |e reques|t, other|
|00005340| 77 69 73 65 20 74 68 65 | 20 72 6f 75 74 69 6e 65 |wise the| routine|
|00005350| 73 20 63 61 6c 6c 20 50 | 72 69 6e 74 66 45 78 69 |s call P|rintfExi|
|00005360| 74 0d 77 69 74 68 20 61 | 20 64 69 61 67 6e 6f 73 |t.with a| diagnos|
|00005370| 74 69 63 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |tic erro|r messag|
|00005380| 65 20 74 68 61 74 20 70 | 69 6e 70 6f 69 6e 74 73 |e that p|inpoints|
|00005390| 20 74 68 65 20 6c 6f 63 | 61 74 69 6f 6e 20 6f 66 | the loc|ation of|
|000053a0| 20 74 68 65 20 65 72 72 | 6f 72 2e 0d 0d 22 61 73 | the err|or..."as|
|000053b0| 73 69 67 6e 52 65 70 6f | 72 74 55 6e 6b 6e 6f 77 |signRepo|rtUnknow|
|000053c0| 6e 22 20 61 73 6b 73 20 | 52 65 61 64 41 73 73 69 |n" asks |ReadAssi|
|000053d0| 67 6e 6d 65 6e 74 4c 69 | 6e 65 20 74 6f 20 72 65 |gnmentLi|ne to re|
|000053e0| 70 6f 72 74 20 61 6e 20 | 65 72 72 6f 72 20 69 66 |port an |error if|
|000053f0| 20 61 6e 20 75 6e 6b 6e | 6f 77 6e 0d 76 61 72 69 | an unkn|own.vari|
|00005400| 61 62 6c 65 20 61 70 70 | 65 61 72 73 20 69 6e 20 |able app|ears in |
|00005410| 74 68 65 20 61 73 73 69 | 67 6e 6d 65 6e 74 20 66 |the assi|gnment f|
|00005420| 69 6c 65 2e 20 41 72 72 | 61 79 20 65 6c 65 6d 65 |ile. Arr|ay eleme|
|00005430| 6e 74 73 20 77 69 74 68 | 20 6f 75 74 2d 6f 66 2d |nts with| out-of-|
|00005440| 72 61 6e 67 65 0d 73 75 | 62 73 63 72 69 70 74 73 |range.su|bscripts|
|00005450| 20 61 72 65 20 63 6f 6e | 73 69 64 65 72 65 64 20 | are con|sidered |
|00005460| 75 6e 6b 6e 6f 77 6e 20 | 76 61 72 69 61 62 6c 65 |unknown |variable|
|00005470| 73 2e 20 49 6e 20 74 68 | 65 20 61 62 73 65 6e 63 |s. In th|e absenc|
|00005480| 65 20 6f 66 20 74 68 69 | 73 20 66 6c 61 67 2c 0d |e of thi|s flag,.|
|00005490| 61 74 74 65 6d 70 74 73 | 20 74 6f 20 61 73 73 69 |attempts| to assi|
|000054a0| 67 6e 20 74 6f 20 75 6e | 6b 6e 6f 77 6e 20 76 61 |gn to un|known va|
|000054b0| 72 69 61 62 6c 65 73 20 | 61 72 65 20 73 69 6c 65 |riables |are sile|
|000054c0| 6e 74 6c 79 20 73 6b 69 | 70 70 65 64 20 28 74 68 |ntly ski|pped (th|
|000054d0| 65 20 64 61 74 61 20 61 | 72 65 0d 64 69 73 63 61 |e data a|re.disca|
|000054e0| 72 64 65 64 29 2e 0d 0d | 22 61 73 73 69 67 6e 4e |rded)...|"assignN|
|000054f0| 6f 48 65 78 49 6e 74 73 | 22 20 74 65 6c 6c 73 20 |oHexInts|" tells |
|00005500| 52 65 61 64 41 73 73 69 | 67 6e 6d 65 6e 74 4c 69 |ReadAssi|gnmentLi|
|00005510| 6e 65 20 61 6e 64 20 50 | 72 69 6e 74 41 6e 41 73 |ne and P|rintAnAs|
|00005520| 73 69 67 6e 6d 65 6e 74 | 20 74 6f 20 6e 65 76 65 |signment| to neve|
|00005530| 72 20 72 65 61 64 0d 6f | 72 20 73 61 76 65 20 63 |r read.o|r save c|
|00005540| 68 61 72 2c 20 73 68 6f | 72 74 2c 20 6f 72 20 6c |har, sho|rt, or l|
|00005550| 6f 6e 67 20 61 73 20 68 | 65 78 20 73 74 72 69 6e |ong as h|ex strin|
|00005560| 67 73 2e 20 54 68 69 73 | 20 73 61 63 72 69 66 69 |gs. This| sacrifi|
|00005570| 63 65 73 20 74 68 65 20 | 63 6f 6d 70 61 63 74 6e |ces the |compactn|
|00005580| 65 73 73 20 6f 66 0d 68 | 65 78 20 73 74 72 69 6e |ess of.h|ex strin|
|00005590| 67 73 2c 20 62 75 74 20 | 65 6e 68 61 6e 63 65 73 |gs, but |enhances|
|000055a0| 20 68 75 6d 61 6e 20 72 | 65 61 64 61 62 69 6c 69 | human r|eadabili|
|000055b0| 74 79 20 6f 66 20 74 68 | 65 20 61 73 73 69 67 6e |ty of th|e assign|
|000055c0| 6d 65 6e 74 20 66 69 6c | 65 2e 20 28 49 74 20 61 |ment fil|e. (It a|
|000055d0| 6c 73 6f 0d 70 72 65 73 | 65 72 76 65 73 20 63 6f |lso.pres|erves co|
|000055e0| 6d 70 61 74 69 62 69 6c | 69 74 79 20 77 69 74 68 |mpatibil|ity with|
|000055f0| 20 43 2c 20 6d 61 6b 69 | 6e 67 20 69 74 20 70 6f | C, maki|ng it po|
|00005600| 73 73 69 62 6c 65 20 74 | 6f 20 23 69 6e 63 6c 75 |ssible t|o #inclu|
|00005610| 64 65 20 74 68 65 20 61 | 73 73 69 67 6e 6d 65 6e |de the a|ssignmen|
|00005620| 74 0d 66 69 6c 65 20 69 | 6e 73 69 64 65 20 61 20 |t.file i|nside a |
|00005630| 43 20 70 72 6f 67 72 61 | 6d 2c 20 61 6e 64 20 70 |C progra|m, and p|
|00005640| 72 65 73 65 72 76 65 73 | 20 70 6f 72 74 61 62 69 |reserves| portabi|
|00005650| 6c 69 74 79 20 6f 66 20 | 74 68 65 20 61 73 73 69 |lity of |the assi|
|00005660| 67 6e 6d 65 6e 74 20 66 | 69 6c 65 0d 62 65 74 77 |gnment f|ile.betw|
|00005670| 65 65 6e 20 63 6f 6d 70 | 75 74 65 72 73 20 74 68 |een comp|uters th|
|00005680| 61 74 20 75 73 65 20 64 | 69 66 66 65 72 65 6e 74 |at use d|ifferent|
|00005690| 20 62 79 74 65 20 6f 72 | 64 65 72 69 6e 67 73 2e | byte or|derings.|
|000056a0| 29 0d 0d 22 61 73 73 69 | 67 6e 48 65 78 46 6c 6f |).."assi|gnHexFlo|
|000056b0| 61 74 73 22 20 74 65 6c | 6c 73 20 50 72 69 6e 74 |ats" tel|ls Print|
|000056c0| 41 6e 41 73 73 69 67 6e | 6d 65 6e 74 20 74 6f 20 |AnAssign|ment to |
|000056d0| 61 6c 77 61 79 73 20 73 | 61 76 65 20 66 6c 6f 61 |always s|ave floa|
|000056e0| 74 73 20 28 66 6c 6f 61 | 74 20 61 6e 64 0d 64 6f |ts (floa|t and.do|
|000056f0| 75 62 6c 65 29 20 61 73 | 20 68 65 78 20 73 74 72 |uble) as| hex str|
|00005700| 69 6e 67 73 2c 20 61 6e | 64 20 74 65 6c 6c 73 20 |ings, an|d tells |
|00005710| 52 65 61 64 41 73 73 69 | 67 6e 6d 65 6e 74 4c 69 |ReadAssi|gnmentLi|
|00005720| 6e 65 20 74 6f 20 61 6c | 6c 6f 77 20 68 65 78 20 |ne to al|low hex |
|00005730| 73 74 72 69 6e 67 73 2e | 20 54 68 69 73 0d 70 72 |strings.| This.pr|
|00005740| 65 73 65 72 76 65 73 20 | 74 68 65 20 65 78 61 63 |eserves |the exac|
|00005750| 74 20 76 61 6c 75 65 20 | 28 75 6e 6c 69 6b 65 20 |t value |(unlike |
|00005760| 64 65 63 69 6d 61 6c 20 | 72 65 70 72 65 73 65 6e |decimal |represen|
|00005770| 74 61 74 69 6f 6e 2c 20 | 77 68 69 63 68 20 6c 6f |tation, |which lo|
|00005780| 73 65 73 20 61 20 66 65 | 77 0d 6c 65 61 73 74 2d |ses a fe|w.least-|
|00005790| 73 69 67 6e 69 66 69 63 | 61 6e 74 20 62 69 74 73 |signific|ant bits|
|000057a0| 20 69 6e 20 74 79 70 69 | 63 61 6c 20 69 6d 70 6c | in typi|cal impl|
|000057b0| 65 6d 65 6e 74 61 74 69 | 6f 6e 73 20 6f 66 20 74 |ementati|ons of t|
|000057c0| 68 65 20 43 20 73 74 64 | 69 6f 20 6c 69 62 72 61 |he C std|io libra|
|000057d0| 72 79 29 2c 20 62 75 74 | 0d 73 61 63 72 69 66 69 |ry), but|.sacrifi|
|000057e0| 63 65 73 20 68 75 6d 61 | 6e 20 72 65 61 64 61 62 |ces huma|n readab|
|000057f0| 69 6c 69 74 79 20 61 6e | 64 20 70 6f 72 74 61 62 |ility an|d portab|
|00005800| 69 6c 69 74 79 20 6f 66 | 20 74 68 65 20 61 73 73 |ility of| the ass|
|00005810| 69 67 6e 6d 65 6e 74 20 | 66 69 6c 65 20 73 69 6e |ignment |file sin|
|00005820| 63 65 20 74 68 65 0d 62 | 69 6e 61 72 79 20 72 65 |ce the.b|inary re|
|00005830| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |presenta|tion of |
|00005840| 66 6c 6f 61 74 73 20 69 | 73 20 68 69 67 68 6c 79 |floats i|s highly|
|00005850| 20 64 65 70 65 6e 64 65 | 6e 74 20 6f 6e 20 74 68 | depende|nt on th|
|00005860| 65 20 63 6f 6d 70 69 6c | 65 72 20 6f 70 74 69 6f |e compil|er optio|
|00005870| 6e 73 20 61 6e 64 0d 74 | 68 65 20 6b 69 6e 64 20 |ns and.t|he kind |
|00005880| 6f 66 20 63 6f 6d 70 75 | 74 65 72 2e 20 28 49 74 |of compu|ter. (It|
|00005890| 20 61 6c 73 6f 20 73 61 | 63 72 69 66 69 63 65 73 | also sa|crifices|
|000058a0| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 77 | compati|bility w|
|000058b0| 69 74 68 20 43 2c 20 6d | 61 6b 69 6e 67 20 69 74 |ith C, m|aking it|
|000058c0| 0d 69 6d 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 23 |.impossi|ble to #|
|000058d0| 69 6e 63 6c 75 64 65 20 | 74 68 65 20 61 73 73 69 |include |the assi|
|000058e0| 67 6e 6d 65 6e 74 20 66 | 69 6c 65 2e 29 0d 0d 22 |gnment f|ile.).."|
|000058f0| 61 73 73 69 67 6e 4e 6f | 43 6f 6d 6d 65 6e 74 22 |assignNo|Comment"|
|00005900| 20 74 65 6c 6c 73 20 50 | 72 69 6e 74 41 6e 41 73 | tells P|rintAnAs|
|00005910| 73 69 67 6e 6d 65 6e 74 | 20 6e 6f 74 20 74 6f 20 |signment| not to |
|00005920| 70 72 69 6e 74 20 74 68 | 65 20 63 6f 6d 6d 65 6e |print th|e commen|
|00005930| 74 20 66 69 65 6c 64 2e | 0d 0d 22 61 73 73 69 67 |t field.|.."assig|
|00005940| 6e 45 63 68 6f 46 69 6c | 65 22 2c 20 70 72 69 6d |nEchoFil|e", prim|
|00005950| 61 72 69 6c 79 20 61 6e | 20 61 69 64 20 74 6f 20 |arily an| aid to |
|00005960| 64 65 62 75 67 67 69 6e | 67 2c 20 70 72 69 6e 74 |debuggin|g, print|
|00005970| 73 20 65 61 63 68 20 6c | 69 6e 65 20 66 72 6f 6d |s each l|ine from|
|00005980| 20 74 68 65 20 73 74 72 | 65 61 6d 0d 61 73 20 69 | the str|eam.as i|
|00005990| 74 20 69 73 20 72 65 61 | 64 20 62 79 20 52 65 61 |t is rea|d by Rea|
|000059a0| 64 41 73 73 69 67 6e 6d | 65 6e 74 4c 69 6e 65 2e |dAssignm|entLine.|
|000059b0| 0d 0d 22 61 73 73 69 67 | 6e 45 63 68 6f 41 73 73 |.."assig|nEchoAss|
|000059c0| 69 67 6e 6d 65 6e 74 73 | 22 2c 20 70 72 69 6d 61 |ignments|", prima|
|000059d0| 72 69 6c 79 20 61 6e 20 | 61 69 64 20 74 6f 20 64 |rily an |aid to d|
|000059e0| 65 62 75 67 67 69 6e 67 | 2c 20 63 61 6c 6c 73 20 |ebugging|, calls |
|000059f0| 50 72 69 6e 74 41 6e 41 | 73 73 69 67 6e 6d 65 6e |PrintAnA|ssignmen|
|00005a00| 74 0d 61 66 74 65 72 20 | 65 61 63 68 20 61 73 73 |t.after |each ass|
|00005a10| 69 67 6e 6d 65 6e 74 20 | 69 73 20 70 65 72 66 6f |ignment |is perfo|
|00005a20| 72 6d 65 64 20 62 79 20 | 52 65 61 64 41 73 73 69 |rmed by |ReadAssi|
|00005a30| 67 6e 6d 65 6e 74 4c 69 | 6e 65 2e 20 55 6e 63 6f |gnmentLi|ne. Unco|
|00005a40| 6d 6d 65 6e 74 65 64 20 | 6e 65 77 6c 69 6e 65 0d |mmented |newline.|
|00005a50| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 74 68 |characte|rs in th|
|00005a60| 65 20 61 73 73 69 67 6e | 6d 65 6e 74 20 66 69 6c |e assign|ment fil|
|00005a70| 65 20 61 72 65 20 65 63 | 68 6f 65 64 20 61 73 20 |e are ec|hoed as |
|00005a80| 77 65 6c 6c 2e 20 28 49 | 66 20 61 73 73 69 67 6e |well. (I|f assign|
|00005a90| 52 65 70 6f 72 74 55 6e | 6b 6e 6f 77 6e 20 69 73 |ReportUn|known is|
|00005aa0| 0d 6f 66 66 20 74 68 65 | 6e 20 61 73 73 69 67 6e |.off the|n assign|
|00005ab0| 6d 65 6e 74 20 73 74 61 | 74 65 6d 65 6e 74 73 20 |ment sta|tements |
|00005ac0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 75 6e 6b 6e 6f |containi|ng unkno|
|00005ad0| 77 6e 20 76 61 72 69 61 | 62 6c 65 73 20 6f 72 20 |wn varia|bles or |
|00005ae0| 6f 75 74 2d 6f 66 2d 62 | 6f 75 6e 64 73 0d 61 72 |out-of-b|ounds.ar|
|00005af0| 72 61 79 20 72 65 66 65 | 72 65 6e 63 65 73 20 61 |ray refe|rences a|
|00005b00| 72 65 20 65 63 68 6f 65 | 64 20 61 73 20 63 6f 6d |re echoe|d as com|
|00005b10| 6d 65 6e 74 73 3a 20 2f | 2a 55 4e 4b 4e 4f 57 4e |ments: /|*UNKNOWN|
|00005b20| 3a 20 78 3d 33 3b 20 2a | 2f 2e 29 0d 0d 22 61 73 |: x=3; *|/.).."as|
|00005b30| 73 69 67 6e 45 63 68 6f | 43 6f 6d 6d 65 6e 74 73 |signEcho|Comments|
|00005b40| 22 2c 20 70 72 69 6d 61 | 72 69 6c 79 20 61 6e 20 |", prima|rily an |
|00005b50| 61 69 64 20 74 6f 20 64 | 65 62 75 67 67 69 6e 67 |aid to d|ebugging|
|00005b60| 2c 20 70 72 69 6e 74 73 | 20 62 6f 74 68 20 2f 2a |, prints| both /*|
|00005b70| 2e 2e 2a 2f 20 61 6e 64 | 0d 2f 2f 2d 73 74 79 6c |..*/ and|.//-styl|
|00005b80| 65 20 63 6f 6d 6d 65 6e | 74 73 20 61 73 20 74 68 |e commen|ts as th|
|00005b90| 65 79 20 61 72 65 20 72 | 65 61 64 20 62 79 20 52 |ey are r|ead by R|
|00005ba0| 65 61 64 41 73 73 69 67 | 6e 6d 65 6e 74 4c 69 6e |eadAssig|nmentLin|
|00005bb0| 65 2e 20 55 6e 63 6f 6d | 6d 65 6e 74 65 64 20 6e |e. Uncom|mented n|
|00005bc0| 65 77 6c 69 6e 65 0d 63 | 68 61 72 61 63 74 65 72 |ewline.c|haracter|
|00005bd0| 73 20 69 6e 20 74 68 65 | 20 61 73 73 69 67 6e 6d |s in the| assignm|
|00005be0| 65 6e 74 20 66 69 6c 65 | 20 61 72 65 20 65 63 68 |ent file| are ech|
|00005bf0| 6f 65 64 20 61 73 20 77 | 65 6c 6c 2e 0d 0d 45 52 |oed as w|ell...ER|
|00005c00| 52 4f 52 53 0d 0d 41 6e | 20 65 72 72 6f 72 20 63 |RORS..An| error c|
|00005c10| 6f 64 65 20 69 73 20 72 | 65 74 75 72 6e 65 64 20 |ode is r|eturned |
|00005c20| 6f 6e 6c 79 20 69 66 20 | 74 68 65 20 61 73 73 69 |only if |the assi|
|00005c30| 67 6e 4e 6f 50 72 69 6e | 74 66 45 78 69 74 20 66 |gnNoPrin|tfExit f|
|00005c40| 6c 61 67 20 69 73 20 73 | 65 74 2e 20 4f 74 68 65 |lag is s|et. Othe|
|00005c50| 72 77 69 73 65 0d 50 72 | 69 6e 74 66 45 78 69 74 |rwise.Pr|intfExit|
|00005c60| 28 29 20 69 73 20 63 61 | 6c 6c 65 64 20 77 69 74 |() is ca|lled wit|
|00005c70| 68 20 61 20 64 69 61 67 | 6e 6f 73 74 69 63 20 6d |h a diag|nostic m|
|00005c80| 65 73 73 61 67 65 2e 0d | 0d 2d 31 20 61 73 73 69 |essage..|.-1 assi|
|00005c90| 67 6e 4d 65 6d 6f 72 79 | 45 72 72 6f 72 3a 20 63 |gnMemory|Error: c|
|00005ca0| 6f 75 6c 64 6e 27 74 20 | 61 6c 6c 6f 63 61 74 65 |ouldn't |allocate|
|00005cb0| 20 65 6e 6f 75 67 68 20 | 6d 65 6d 6f 72 79 2e 0d | enough |memory..|
|00005cc0| 2d 32 20 61 73 73 69 67 | 6e 54 79 70 65 45 72 72 |-2 assig|nTypeErr|
|00005cd0| 6f 72 3a 20 75 6e 6b 6e | 6f 77 6e 20 74 79 70 65 |or: unkn|own type|
|00005ce0| 2c 20 6f 72 20 61 72 72 | 61 79 20 6f 66 20 73 74 |, or arr|ay of st|
|00005cf0| 72 69 6e 67 2c 20 77 68 | 69 63 68 20 69 73 20 6e |ring, wh|ich is n|
|00005d00| 6f 74 20 61 6c 6c 6f 77 | 65 64 2e 0d 2d 33 20 61 |ot allow|ed..-3 a|
|00005d10| 73 73 69 67 6e 56 61 72 | 69 61 62 6c 65 45 72 72 |ssignVar|iableErr|
|00005d20| 6f 72 3a 20 63 6f 75 6c | 64 6e 27 74 20 70 61 72 |or: coul|dn't par|
|00005d30| 73 65 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |se the v|ariable |
|00005d40| 6e 61 6d 65 2e 0d 2d 34 | 20 61 73 73 69 67 6e 55 |name..-4| assignU|
|00005d50| 6e 6b 6e 6f 77 6e 56 61 | 72 69 61 62 6c 65 45 72 |nknownVa|riableEr|
|00005d60| 72 6f 72 3a 20 75 6e 6b | 6e 6f 77 6e 20 76 61 72 |ror: unk|nown var|
|00005d70| 69 61 62 6c 65 3b 20 63 | 61 6e 20 6f 6e 6c 79 20 |iable; c|an only |
|00005d80| 6f 63 63 75 72 20 69 66 | 20 74 68 65 20 0d 09 61 |occur if| the ..a|
|00005d90| 73 73 69 67 6e 52 65 70 | 6f 72 74 55 6e 6b 6e 6f |ssignRep|ortUnkno|
|00005da0| 77 6e 20 66 6c 61 67 20 | 69 73 20 73 65 74 2e 0d |wn flag |is set..|
|00005db0| 2d 35 20 61 73 73 69 67 | 6e 53 75 62 73 63 72 69 |-5 assig|nSubscri|
|00005dc0| 70 74 45 72 72 6f 72 3a | 20 63 6f 75 6c 64 6e 27 |ptError:| couldn'|
|00005dd0| 74 20 70 61 72 73 65 20 | 74 68 65 20 73 75 62 73 |t parse |the subs|
|00005de0| 63 72 69 70 74 2e 0d 2d | 36 20 61 73 73 69 67 6e |cript..-|6 assign|
|00005df0| 53 75 62 73 63 72 69 70 | 74 42 6f 75 6e 64 73 45 |Subscrip|tBoundsE|
|00005e00| 72 72 6f 72 3a 20 6f 75 | 74 2d 6f 66 2d 62 6f 75 |rror: ou|t-of-bou|
|00005e10| 6e 64 73 20 61 72 72 61 | 79 20 65 6c 65 6d 65 6e |nds arra|y elemen|
|00005e20| 74 3b 20 74 68 69 73 20 | 65 72 72 6f 72 20 69 73 |t; this |error is|
|00005e30| 20 66 6c 61 67 67 65 64 | 20 6f 6e 6c 79 20 0d 09 | flagged| only ..|
|00005e40| 69 66 20 74 68 65 20 61 | 73 73 69 67 6e 52 65 70 |if the a|ssignRep|
|00005e50| 6f 72 74 55 6e 6b 6e 6f | 77 6e 20 66 6c 61 67 20 |ortUnkno|wn flag |
|00005e60| 69 73 20 73 65 74 2e 0d | 2d 37 20 61 73 73 69 67 |is set..|-7 assig|
|00005e70| 6e 45 71 75 61 6c 73 45 | 72 72 6f 72 3a 20 63 6f |nEqualsE|rror: co|
|00005e80| 75 6c 64 6e 27 74 20 66 | 69 6e 64 20 74 68 65 20 |uldn't f|ind the |
|00005e90| 65 71 75 61 6c 73 20 73 | 69 67 6e 2e 0d 2d 38 20 |equals s|ign..-8 |
|00005ea0| 61 73 73 69 67 6e 43 6f | 6e 73 74 61 6e 74 45 72 |assignCo|nstantEr|
|00005eb0| 72 6f 72 3a 20 63 6f 75 | 6c 64 6e 27 74 20 70 61 |ror: cou|ldn't pa|
|00005ec0| 72 73 65 20 74 68 65 20 | 63 6f 6e 73 74 61 6e 74 |rse the |constant|
|00005ed0| 2e 0d 2d 39 20 61 73 73 | 69 67 6e 48 65 78 45 72 |..-9 ass|ignHexEr|
|00005ee0| 72 6f 72 3a 20 63 6f 75 | 6c 64 6e 27 74 20 70 61 |ror: cou|ldn't pa|
|00005ef0| 72 73 65 20 61 20 68 65 | 78 2d 65 6e 63 6f 64 65 |rse a he|x-encode|
|00005f00| 64 20 62 69 6e 61 72 79 | 20 6f 62 6a 65 63 74 20 |d binary| object |
|00005f10| 63 6f 6e 73 74 61 6e 74 | 2e 0d 2d 31 30 20 61 73 |constant|..-10 as|
|00005f20| 73 69 67 6e 53 65 6d 69 | 63 6f 6c 6f 6e 45 72 72 |signSemi|colonErr|
|00005f30| 6f 72 3a 20 63 6f 75 6c | 64 6e 27 74 20 66 69 6e |or: coul|dn't fin|
|00005f40| 64 20 74 68 65 20 73 65 | 6d 69 63 6f 6c 6f 6e 2e |d the se|micolon.|
|00005f50| 0d 2d 31 31 20 61 73 73 | 69 67 6e 46 69 6c 65 45 |.-11 ass|ignFileE|
|00005f60| 72 72 6f 72 3a 20 63 6f | 75 6c 64 6e 27 74 20 6f |rror: co|uldn't o|
|00005f70| 70 65 6e 20 74 68 65 20 | 66 69 6c 65 2e 0d 2d 31 |pen the |file..-1|
|00005f80| 32 20 61 73 73 69 67 6e | 49 6e 63 6f 6e 73 69 73 |2 assign|Inconsis|
|00005f90| 74 65 6e 74 44 65 73 63 | 72 69 70 74 69 6f 6e 73 |tentDesc|riptions|
|00005fa0| 45 72 72 6f 72 3a 20 74 | 77 6f 20 64 65 73 63 72 |Error: t|wo descr|
|00005fb0| 69 70 74 69 6f 6e 73 20 | 61 72 65 20 69 6e 63 6f |iptions |are inco|
|00005fc0| 6e 73 69 73 74 65 6e 74 | 2e 0d 2d 31 33 20 61 73 |nsistent|..-13 as|
|00005fd0| 73 69 67 6e 55 6e 65 71 | 75 61 6c 44 61 74 61 45 |signUneq|ualDataE|
|00005fe0| 72 72 6f 72 3a 20 74 77 | 6f 20 64 65 73 63 72 69 |rror: tw|o descri|
|00005ff0| 62 65 64 20 76 61 72 69 | 61 62 6c 65 73 20 68 61 |bed vari|ables ha|
|00006000| 76 65 20 73 69 67 6e 69 | 66 69 63 61 6e 74 6c 79 |ve signi|ficantly|
|00006010| 20 64 69 66 66 65 72 65 | 6e 74 20 64 61 74 61 2e | differe|nt data.|
|00006020| 0d 0d 49 4d 50 4f 52 54 | 41 4e 54 3a 20 44 6f 20 |..IMPORT|ANT: Do |
|00006030| 6e 6f 74 20 66 6f 72 67 | 65 74 20 74 6f 20 6d 61 |not forg|et to ma|
|00006040| 72 6b 20 74 68 65 20 65 | 6e 64 20 6f 66 20 79 6f |rk the e|nd of yo|
|00006050| 75 72 20 44 65 73 63 72 | 69 70 74 69 6f 6e 20 61 |ur Descr|iption a|
|00006060| 72 72 61 79 20 62 79 20 | 61 20 44 65 73 63 72 69 |rray by |a Descri|
|00006070| 70 74 69 6f 6e 20 0d 77 | 69 74 68 20 61 20 74 79 |ption .w|ith a ty|
|00006080| 70 65 20 6f 66 20 7a 65 | 72 6f 2e 0d 0d 55 53 49 |pe of ze|ro...USI|
|00006090| 4e 47 20 41 53 53 49 47 | 4e 2e 43 0d 0d 49 74 20 |NG ASSIG|N.C..It |
|000060a0| 69 73 20 73 75 67 67 65 | 73 74 65 64 20 74 68 61 |is sugge|sted tha|
|000060b0| 74 20 74 68 6f 73 65 20 | 77 68 6f 20 77 61 6e 74 |t those |who want|
|000060c0| 20 74 6f 20 75 73 65 20 | 74 68 69 73 20 70 61 63 | to use |this pac|
|000060d0| 6b 61 67 65 20 63 72 65 | 61 74 65 20 61 20 68 65 |kage cre|ate a he|
|000060e0| 61 64 65 72 20 66 69 6c | 65 0d 77 69 74 68 20 61 |ader fil|e.with a|
|000060f0| 20 74 79 70 65 64 65 66 | 20 66 6f 72 20 61 20 64 | typedef| for a d|
|00006100| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 2c 20 61 |ata stru|cture, a|
|00006110| 6e 64 20 77 72 69 74 65 | 20 61 20 73 75 62 72 6f |nd write| a subro|
|00006120| 75 74 69 6e 65 20 74 68 | 61 74 20 61 6c 6c 6f 63 |utine th|at alloc|
|00006130| 61 74 65 73 20 61 6e 64 | 0d 66 69 6c 6c 73 20 61 |ates and|.fills a|
|00006140| 20 44 65 73 63 72 69 70 | 74 69 6f 6e 20 61 72 72 | Descrip|tion arr|
|00006150| 61 79 20 64 65 73 63 72 | 69 62 69 6e 67 20 74 68 |ay descr|ibing th|
|00006160| 65 20 64 61 74 61 20 73 | 74 72 75 63 74 75 72 65 |e data s|tructure|
|00006170| 27 73 20 66 69 65 6c 64 | 73 2e 20 46 6f 72 20 65 |'s field|s. For e|
|00006180| 78 61 6d 70 6c 65 2c 0d | 4c 75 6d 69 6e 61 6e 63 |xample,.|Luminanc|
|00006190| 65 2e 68 20 64 65 66 69 | 6e 65 73 20 74 68 65 20 |e.h defi|nes the |
|000061a0| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 20 |Luminanc|eRecord |
|000061b0| 73 74 72 75 63 74 75 72 | 65 20 61 6e 64 20 52 65 |structur|e and Re|
|000061c0| 61 64 4c 75 6d 69 6e 61 | 6e 63 65 52 65 63 6f 72 |adLumina|nceRecor|
|000061d0| 64 2e 63 20 0d 63 6f 6e | 74 61 69 6e 73 20 74 68 |d.c .con|tains th|
|000061e0| 65 20 66 75 6e 63 74 69 | 6f 6e 2c 0d 09 44 65 73 |e functi|on,..Des|
|000061f0| 63 72 69 70 74 69 6f 6e | 20 2a 44 65 73 63 72 69 |cription| *Descri|
|00006200| 62 65 4c 75 6d 69 6e 61 | 6e 63 65 52 65 63 6f 72 |beLumina|nceRecor|
|00006210| 64 28 4c 75 6d 69 6e 61 | 6e 63 65 52 65 63 6f 72 |d(Lumina|nceRecor|
|00006220| 64 20 2a 4c 50 29 3b 0d | 74 68 61 74 20 63 72 65 |d *LP);.|that cre|
|00006230| 61 74 65 73 20 61 20 44 | 65 73 63 72 69 70 74 69 |ates a D|escripti|
|00006240| 6f 6e 20 61 72 72 61 79 | 20 64 65 73 63 72 69 62 |on array| describ|
|00006250| 69 6e 67 20 74 68 65 20 | 70 61 72 74 69 63 75 6c |ing the |particul|
|00006260| 61 72 20 4c 75 6d 69 6e | 61 6e 63 65 52 65 63 6f |ar Lumin|anceReco|
|00006270| 72 64 20 73 74 72 75 63 | 74 75 72 65 2e 0d 0d 43 |rd struc|ture...C|
|00006280| 4f 4e 54 52 4f 4c 4c 49 | 4e 47 20 45 58 50 45 52 |ONTROLLI|NG EXPER|
|00006290| 49 4d 45 4e 54 53 0d 0d | 41 73 73 69 67 6e 2e 63 |IMENTS..|Assign.c|
|000062a0| 20 77 61 73 20 6f 72 69 | 67 69 6e 61 6c 6c 79 20 | was ori|ginally |
|000062b0| 77 72 69 74 74 65 6e 20 | 74 6f 20 72 65 61 64 20 |written |to read |
|000062c0| 70 61 72 61 6d 65 74 65 | 72 20 66 69 6c 65 73 20 |paramete|r files |
|000062d0| 74 68 61 74 20 63 6f 6e | 74 72 6f 6c 0d 65 78 70 |that con|trol.exp|
|000062e0| 65 72 69 6d 65 6e 74 73 | 2e 20 54 79 70 69 63 61 |eriments|. Typica|
|000062f0| 6c 20 70 73 79 63 68 6f | 70 68 79 73 69 63 61 6c |l psycho|physical|
|00006300| 20 61 6e 64 20 70 68 79 | 73 69 6f 6c 6f 67 69 63 | and phy|siologic|
|00006310| 61 6c 20 65 78 70 65 72 | 69 6d 65 6e 74 73 20 61 |al exper|iments a|
|00006320| 72 65 20 76 65 72 79 0d | 63 6f 6d 70 6c 69 63 61 |re very.|complica|
|00006330| 74 65 64 20 61 6e 64 20 | 72 65 71 75 69 72 65 20 |ted and |require |
|00006340| 6c 6f 74 73 20 6f 66 20 | 61 64 6a 75 73 74 61 62 |lots of |adjustab|
|00006350| 6c 65 20 70 61 72 61 6d | 65 74 65 72 73 2e 20 4f |le param|eters. O|
|00006360| 6e 65 20 6e 65 65 64 73 | 20 61 6e 20 65 61 73 79 |ne needs| an easy|
|00006370| 20 77 61 79 20 74 6f 0d | 63 68 61 6e 67 65 20 74 | way to.|change t|
|00006380| 68 65 6d 20 61 6c 6c 20 | 74 68 61 74 20 69 73 20 |hem all |that is |
|00006390| 73 65 6c 66 20 64 6f 63 | 75 6d 65 6e 74 69 6e 67 |self doc|umenting|
|000063a0| 20 61 6e 64 20 65 61 73 | 69 6c 79 20 72 65 70 72 | and eas|ily repr|
|000063b0| 6f 64 75 63 65 64 2c 20 | 70 6f 73 73 69 62 6c 79 |oduced, |possibly|
|000063c0| 20 6d 6f 6e 74 68 73 0d | 6c 61 74 65 72 2e 20 54 | months.|later. T|
|000063d0| 68 65 20 72 6f 75 74 69 | 6e 65 73 20 70 72 6f 76 |he routi|nes prov|
|000063e0| 69 64 65 64 20 68 65 72 | 65 20 63 6f 6d 65 20 69 |ided her|e come i|
|000063f0| 6e 20 76 61 72 69 6f 75 | 73 20 66 6c 61 76 6f 72 |n variou|s flavor|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.